Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 76: Line 76:
function Slider(){
function Slider(){
$(".slider #1").show("fade",500);
$(".slider #1").show("fade",500);
-
$(".slider #1").delay(5500).hide("slide",{direction:'left'},500);
+
$(".slider #1").delay(3000).hide("slide",{direction:'left'},500);
var sc = $(".slider img").size();
var sc = $(".slider img").size();
Line 83: Line 83:
setInterval(function(){
setInterval(function(){
$(".slider #"+count).show("slide",{direction:'right'},500);
$(".slider #"+count).show("slide",{direction:'right'},500);
-
$(".slider #"+count).delay(5500).hide("slide",{direction:'left'},500);
+
$(".slider #"+count).delay(3000).hide("slide",{direction:'left'},500);
if(count == sc){
if(count == sc){
count = 1;
count = 1;
Line 89: Line 89:
count += 1;
count += 1;
}
}
-
},6500);
+
},4000);
}
}
</script>
</script>
</html>
</html>

Revision as of 09:58, 24 July 2014