JQuery Cross-slide
Posted
by
Foxticity
on Stack Overflow
See other posts from Stack Overflow
or by Foxticity
Published on 2012-04-03T05:17:45Z
Indexed on
2012/04/03
5:28 UTC
Read the original article
Hit count: 126
I'm trying to cycle through 3 images with JQuery Cross-slide, but the images doesn't want to display, here is the basic code below.
All 3 images are in 650 - 100 size, and they are in the correct location, but the images just don't want to display. What am i doing wrong??
<html>
<body>
<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.cross-slide.js" type="text/javascript"></script>
<div id="crossslide" style="width:650px; height:100px;"></div>
<script type="text/javascript">
//<!--
$(function(){
$("#crossslide").crossSlide({
speed: 45,
fade: 1
}, [
{ src: "01.jpg", dir:"up"},
{ src: "02.jpg", dir:"down"},
{ src: "03.jpg", dir:"left"}
]);
});
// -->
</script>
</body>
</html>
© Stack Overflow or respective owner