Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
 
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){

Latest revision as of 11:56, 2 October 2013