Team:IIT Madras/About us/Gallery:Slideshow
From 2011.igem.org
(Difference between revisions)
Line 3: | Line 3: | ||
<head> | <head> | ||
<style> | <style> | ||
- | .photo{position:absolute; top:150px; left: | + | .photo{position:absolute; top:150px; left:175px; display:none;} |
</style> | </style> | ||
Line 10: | Line 10: | ||
jQuery(document).ready(); | jQuery(document).ready(); | ||
var i=1; | var i=1; | ||
+ | |||
+ | function auto(){ | ||
+ | setTimeout("next_pic()",100); | ||
+ | } | ||
+ | |||
function next_pic(){ | function next_pic(){ | ||
$("#pid"+i).fadeOut(); | $("#pid"+i).fadeOut(); | ||
Line 15: | Line 20: | ||
$("#pid"+(i+1)).fadeIn(); | $("#pid"+(i+1)).fadeIn(); | ||
i++; | i++; | ||
+ | auto(); | ||
} | } | ||
Revision as of 17:32, 28 October 2011
GALLERY
next