Team:UCLA/Template/Javascript test

From 2014.igem.org

(Difference between revisions)
(Created page with "<html> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script> <!--TOP NAVIGATION MENU BAR--> <script type="text/javascript"> $(document).ready...")
Line 70: Line 70:
</script>
</script>
-
<!--SLIDER-->
 
-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 
-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
 
-
<script type="text/javascript">
 
-
function Slider(){
 
-
$(".slider #1").show("fade",500);
 
-
$(".slider #1").delay(3000).hide("slide",{direction:'left'},500);
 
-
 
-
var sc = $(".slider img").size();
 
-
var count = 2;
 
-
 
-
setInterval(function(){
 
-
$(".slider #"+count).show("slide",{direction:'right'},500);
 
-
$(".slider #"+count).delay(3000).hide("slide",{direction:'left'},500);
 
-
if(count == sc){
 
-
count = 1;
 
-
}else{
 
-
count += 1;
 
-
}
 
-
},4000);
 
-
}
 
-
</script>
 
</html>
</html>

Revision as of 15:49, 27 August 2014