Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
 
(6 intermediate revisions not shown)
Line 19: Line 19:
}
}
 +
 +
//与jq中的toggle函数相似,简化版本
 +
function toggle(target){
 +
  if(getComputedStyle(target,null).display == "none"){
 +
            target.style.display = "block"
 +
    } else {target.style.display = "none"}
 +
}
 +
 +
function getOrgStyle(ob){
function getOrgStyle(ob){
Line 47: Line 56:
function startslide()
function startslide()
{
{
-
if(picSlide_i >= 4) picSlide_i = 0;
+
if(picSlide_i >= e.length) picSlide_i = 0;
fadeInOut();
fadeInOut();
$("#resume").hide();
$("#resume").hide();
Line 81: Line 90:
function go2left(){
function go2left(){
stoptimer();
stoptimer();
-
if (picSlide_i == 0) picSlide_i = 4;
+
if (picSlide_i == 0) picSlide_i = 5;
picSlide_i = picSlide_i - 2;
picSlide_i = picSlide_i - 2;
if (picSlide_i < 0) picSlide_i =2;
if (picSlide_i < 0) picSlide_i =2;
Line 149: Line 158:
}
}
-
$(document).ready(function(){
+
 
-
    //universal
+
 
-
    ob1 = document.getElementById('col-left');
+
-
    rTop = 307;
+
-
  // window.setInterval('',20);
+
-
})
+
</script>
</script>
</html>
</html>

Latest revision as of 11:56, 2 October 2013