Team:Tsinghua/slavejs
From 2010.igem.org
(Difference between revisions)
(2 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | ||
- | + | ||
- | + | ||
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 11: | ||
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"; | ||
} | } | ||
} | } | ||
} | } | ||
- | |||
- | |||
</script> | </script> | ||
- | + | ||
</html> | </html> |
Latest revision as of 11:52, 17 August 2010