Team:Tsinghua/slavejs
From 2010.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
{ | { | ||
var sobj=document.getElementById("slave"); | var sobj=document.getElementById("slave"); | ||
- | if(sobj | + | if(sobj==null) |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
{ | { | ||
var objs=document.getElementsByTagName("div"); | var objs=document.getElementsByTagName("div"); | ||
Line 23: | Line 12: | ||
if(objs[i].getAttribute('id') == 'master') | if(objs[i].getAttribute('id') == 'master') | ||
{ | { | ||
- | objs[i]. | + | objs[i].id="content_box"; |
- | + | ||
} | } | ||
if(objs[i].getAttribute('id') == 'mc') | if(objs[i].getAttribute('id') == 'mc') | ||
{ | { | ||
objs[i].id="main_content"; | objs[i].id="main_content"; | ||
+ | } | ||
+ | if(objs[i].getAttribute('id') == 'mastershow') | ||
+ | { | ||
+ | objs[i].style.display = "block"; | ||
} | } | ||
} | } |
Revision as of 08:11, 26 July 2010