Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 73: Line 73:
<script type="text/javascript">
<script type="text/javascript">
function Slider(){
function Slider(){
-
($(".slider #1").show("fade",500);
+
$(".slider #1").show("fade",500);
$(".slider #1").delay(3000).hide("slide",{direction:'left'},500);
$(".slider #1").delay(3000).hide("slide",{direction:'left'},500);
Line 79: Line 79:
var count = 2;
var count = 2;
-
setInterval(function(){
+
 +
 +
var cycle = setInterval(function(){
$(".slider #"+count).show("slide",{direction:'right'},500);
$(".slider #"+count).show("slide",{direction:'right'},500);
$(".slider #"+count).delay(3000).hide("slide",{direction:'left'},500);
$(".slider #"+count).delay(3000).hide("slide",{direction:'left'},500);

Revision as of 23:16, 15 September 2014