Revision: 19792
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 30, 2009 18:15 by twobon
Initial Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $('html').addClass('js'); $(document).ready( function() { setInterval("switchSlide()", 4000); }); function switchSlide() { var slide = $("#slideshow .slide:first"); slide.hide(); $("#slideshow").append(slide); slide.fadeIn(1500); } </script> <style> #tagline {width:332px; height:27px; overflow:hidden; margin:11px 0 0 0; position:relative; left:0;} #slideshow .slide {position: absolute;left:0;} #slideshow .slide a, #slideshow .slide img{border:none;} .js #slideshow .slide {display: none;} </style> </head> <body> <div id="slideshow"> <div class="slide"> <a href="#"><img src="img1.png" height="" width="" alt=""></a> </div> <div class="slide"> <a href="#"><img src="img2.png" height="" width="" alt=""></a> </div> </div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> </body> </html>
Initial URL
Initial Description
slideshow with cross-fade transition - no plugin required
Initial Title
jQuery simple slideshow
Initial Tags
jquery
Initial Language
XHTML