<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/JavaScript" src="/js/cloud-carousel.1.0.4.js"></script>
<script>
$(document).ready(function(){
$("#carousel1").CloudCarousel(
{
xPos: 128,
yPos: 32,
buttonLeft: $("#left-but"),
buttonRight: $("#right-but"),
altBox: $("#alt-text"),
titleBox: $("#title-text")
}
);
});
</script>
</head>
<body>
<div id = "carousel1" style="width:256px; height:128px;background:#000;overflow:scroll;">
<img class = "cloudcarousel" src="/images/carousel/flags/flag1.png" alt="Flag 1 Description" title="Flag 1 Title" />
<img class = "cloudcarousel" src="/images/carousel/flags/flag2.png" alt="Flag 2 Description" title="Flag 2 Title" />
<img class = "cloudcarousel" src="/images/carousel/flags/flag3.png" alt="Flag 3 Description" title="Flag 3 Title" />
<img class = "cloudcarousel" src="/images/carousel/flags/flag4.png" alt="Flag 4 Description" title="Flag 4 Title" />
</div>
<input id="left-but" type="button" value="Left" />
<input id="right-but" type="button" value="Right" />
<p id="title-text"></p>
<p id="alt-text"></p>
</body>
</html> http://bitrix.ucoz.kz/cloud-carousel.1.0.4.js
Источник: http://www.professorcloud.com/mainsite/carousel-integration.htm |