Template:Imperial/StartPage2
From 2008.igem.org
(Difference between revisions)
m |
m |
||
Line 254: | Line 254: | ||
</style></html><table style="background-color:transparent;" width="100%" cellpadding="0" cellspacing="0" ><tr><td><div class=Toolbar><br clear="all">{{Imperial/Navbar2}}</div></td></tr><tr><td><div class=Section> | </style></html><table style="background-color:transparent;" width="100%" cellpadding="0" cellspacing="0" ><tr><td><div class=Toolbar><br clear="all">{{Imperial/Navbar2}}</div></td></tr><tr><td><div class=Section> | ||
+ | <!-- | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | PUT BACK IN CSS IF NEEDED/* Top bar images */ | ||
+ | .wetlab { | ||
+ | background-image: url('http://i59.photobucket.com/albums/g305/Timpski/Bottles.png'); | ||
+ | background-size: 100%; | ||
+ | background-origin: content; | ||
+ | width: 100%; | ||
+ | } | ||
+ | --> | ||
+ | <!-- | ||
+ | <script type="text/javascript"> | ||
+ | |||
+ | function toggleNext(el) { | ||
+ | var next=el.nextSibling; | ||
+ | while(next.nodeType != 1) next=next.nextSibling; | ||
+ | next.style.display=((next.style.display=="none") ? "block" : "none"); | ||
+ | } | ||
+ | |||
+ | function getElementsByIdTagAndClassName(id,tag,cname) { | ||
+ | var tags=document.getElementById(id).getElementsByTagName(tag); | ||
+ | var cEls=new Array(); | ||
+ | for (i=0; i<tags.length; i++) { | ||
+ | var rE=new RegExp("(^|\s)" + cname + "(\s|$)"); | ||
+ | if (rE.test(tags[i].className)) { | ||
+ | cEls.push(tags[i]); | ||
+ | } | ||
+ | } | ||
+ | return cEls; | ||
+ | } | ||
+ | function toggleNextByIdTagAndClassName(id,tag,cname) { | ||
+ | var ccn="clicker"; | ||
+ | clickers=getElementsByIdTagAndClassName(id,tag,cname); | ||
+ | for (i=0; i<clickers.length; i++) { | ||
+ | clickers[i].className+=" "+ccn; | ||
+ | clickers[i].onclick=function() {toggleNext(this)} | ||
+ | toggleNext(clickers[i]); | ||
+ | } | ||
+ | } | ||
+ | window.onload=function(){toggleNextByIdTagAndClassName('byidtagandclass','p','num')} | ||
+ | </script> | ||
+ | <div id="byidtagandclass" class="eg"> | ||
+ | --> |