Team:Peking/Test
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | <head> | ||
- | + | <meta http-equiv="Content-Type" content="text/html" /> | |
+ | <title>无标题文档</title> | ||
<style type="text/css"> | <style type="text/css"> | ||
Line 15: | Line 16: | ||
} | } | ||
+ | table{ | ||
+ | background-image: url(https://static.igem.org/mediawiki/2010/2/2d/BANNER_BACK.jpg); | ||
+ | background-color: #990000; | ||
+ | } | ||
a:link { | a:link { | ||
Line 63: | Line 68: | ||
function MM_findObj(n, d) { //v4.01 | function MM_findObj(n, d) { //v4.01 | ||
- | var p,i,x; if(!d) d=document; | + | |
- | + | var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0 && parent.frames.length) { | |
- | + | ||
- | + | d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} | |
- | d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); | + | |
- | + | if(!(x=d[n]) && d.all) x=d.all[n]; for (i=0;!x && i<d.forms.length;i++) x=d.forms[i][n]; | |
- | if(!(x=d[n]) | + | |
- | + | for(i=0;!x && d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); | |
- | + | ||
- | + | if(!x && d.getElementById) x=d.getElementById(n); return x; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | i = 0; | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | if(d.getElementById) | + | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
+ | |||
+ | |||
function MM_showHideLayers() { //v6.0 | function MM_showHideLayers() { //v6.0 | ||
+ | |||
var i,p,v,obj,args=MM_showHideLayers.arguments; | var i,p,v,obj,args=MM_showHideLayers.arguments; | ||
+ | |||
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; | for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; | ||
+ | |||
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } | if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } | ||
+ | |||
obj.visibility=v; } | obj.visibility=v; } | ||
+ | |||
} | } | ||
Revision as of 09:46, 23 September 2010