Team:Tsinghua/slavejs
From 2010.igem.org
(Difference between revisions)
(New page: <html> <script type="text/javascript"> var timerid=0; function fixmaster() { var sobj=document.getElementById("slave"); if(sobj!=null) { var objs=document.getElementsBy...) |
|||
(3 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> | |
- | + | ||
- | + | </html> | |
- | </script></html> | + |
Latest revision as of 11:52, 17 August 2010