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;  
+
 
-
  if((p=n.indexOf("?"))>0)
+
   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0 && parent.frames.length) {
-
  if(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]))
+
 
-
  if(d.all)
+
   for(i=0;!x && d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
-
  x=d.all[n];
+
 
-
  i = 0;
+
   if(!x && d.getElementById) x=d.getElementById(n); return x;
-
  while( i < d.forms.length)
+
 
-
  {
+
-
  if( !x )
+
-
  {
+
-
  x = d.forms[ i ][ n ];i ++;
+
-
  }
+
-
  }
+
-
   i = 0;
+
-
  while( i < d.layers.length)
+
-
  {
+
-
  if( !x )
+
-
  if( d.layers )
+
-
  {
+
-
x=MM_findObj(n,d.layers[i].document);
+
-
i ++;
+
-
  }
+
-
  }
+
-
   if(d.getElementById)
+
-
  if(!x)
+
-
  x=d.getElementById(n);
+
-
  return x;
+
}
}
 +
 +
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

无标题文档