Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
 
(4 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 148: Line 157:
     obj.style.display = "none";
     obj.style.display = "none";
}
}
 +
 +
</script>
</script>
</html>
</html>

Latest revision as of 11:56, 2 October 2013