Team:HKU-Hong Kong/header

From 2010.igem.org

(Difference between revisions)
Line 74: Line 74:
</style>
</style>
-
<script language="JavaScript">
+
 
 +
<script language="JavaScript" type="text/javascript">
<!--
<!--
-
// PRELOADING IMAGES
 
if (document.images) {
if (document.images) {
-
img_on =new Image(); img_on.src ="https://static.igem.org/mediawiki/2010/1/15/Hku1a.png";  
+
    homebuttonup      = new Image();
-
img_off=new Image(); img_off.src="https://static.igem.org/mediawiki/2010/0/00/Hku1b.png";  
+
    homebuttonup.src   = "https://static.igem.org/mediawiki/2010/1/15/Hku1a.png" ;
 +
    homebuttondown    = new Image() ;
 +
    homebuttondown.src = "https://static.igem.org/mediawiki/2010/0/03/Hku2b.png" ;
-
img1_on =new Image(); img1_on.src =" https://static.igem.org/mediawiki/2010/1/15/Hku1a.png"";  
+
teambuttonup      = new Image();
-
img1_off=new Image(); img1_off.src=" https://static.igem.org/mediawiki/2010/0/00/Hku1b.png ";  
+
teambuttonup.src   = "https://static.igem.org/mediawiki/2010/1/15/Hku1a.png" ;
 +
teambuttondown    = new Image() ;
 +
teambuttondown.src = "https://static.igem.org/mediawiki/2010/0/03/Hku2b.png" ;
-
img2_on =new Image(); img2_on.src ="../hi-icons/121.gif";
 
-
img2_off=new Image(); img2_off.src="../hi-icons/122.gif";
 
-
 
-
img3_on =new Image(); img3_on.src ="../hi-icons/131.gif";
 
-
img3_off=new Image(); img3_off.src="../hi-icons/132.gif";
 
-
 
-
img4_on =new Image(); img4_on.src ="../hi-icons/141.gif";
 
-
img4_off=new Image(); img4_off.src="../hi-icons/142.gif";
 
-
 
-
img5_on =new Image(); img5_on.src ="../hi-icons/151.gif";
 
-
img5_off=new Image(); img5_off.src="../hi-icons/152.gif";
 
-
 
-
img6_on =new Image(); img6_on.src ="../hi-icons/161.gif";
 
-
img6_off=new Image(); img6_off.src="../hi-icons/162.gif";
 
}
}
-
 
+
function buttondown( buttonname )
-
function movr(k) {
+
{
-
if (document.images)  
+
    if (document.images) {
-
  eval('document.img'+k+'.src=img'+k+'_on.src');
+
      document[ buttonname ].src = eval( buttonname + "down.src" );
 +
    }
}
}
-
 
+
function buttonup ( buttonname )
-
function mout(k) {
+
{
-
if (document.images)  
+
    if (document.images) {
-
  eval('document.img'+k+'.src=img'+k+'_off.src');
+
      document[ buttonname ].src = eval( buttonname + "up.src" );
 +
    }
}
}
 +
// -->
 +
</script>
-
function handleOver() {
 
-
if (document.images)
 
-
  document.imgName.src=img_on.src;
 
-
}
 
-
function handleOut() {
 
-
if (document.images)
 
-
  document.imgName.src=img_off.src;
 
-
}
 
-
 
-
//-->
 
-
</script>
 
</head>
</head>
Line 133: Line 116:
<div id="left"><div class="column-in">
<div id="left"><div class="column-in">
-
+
<a href="about.html"
-
<a href="https://2010.igem.org/Team:HKU-Hong_Kong" target="_self"
+
  onmouseover="buttondown('teambutton')"
-
onMouseOver="movr(1);return true;"  
+
  onmouseout="buttonup('teambutton')">
-
onMouseOut="mout(1);return true;"
+
<img src="https://static.igem.org/mediawiki/2010/0/03/Hku2b.png" name="teambutton" border="0" />
-
onClick="return false;"
+
</a>
-
><img name=img1 width=100%
+
 
-
alt="This image changes when you point at it!"
+
<a href="https://2010.igem.org/Team:HKU-Hong_Kong/Team" target="_self"
-
src=" https://static.igem.org/mediawiki/2010/0/00/Hku1b.png"
+
onMouseOver="https://static.igem.org/mediawiki/2010/1/15/Hku1a.png"
-
></a>
+
onMouseOut="https://static.igem.org/mediawiki/2010/0/03/Hku2b.png">
 +
<img src="https://static.igem.org/mediawiki/2010/0/03/Hku2b.png"
 +
width="100%">
 +
</a>
 +
 
-
<a href="https://2010.igem.org/Team:HKU-Hong_Kong/Team" target="_self">
 
-
<img border="0" alt="testing123!" src="https://static.igem.org/mediawiki/2010/0/03/Hku2b.png" id="b2" width="100%" onmouseover="mouseOver()" onmouseout="mouseOut()" /></a>
 
<a href="https://igem.org/Team.cgi?year=2010&team_name=HKU-Hong_Kong" target="_self">
<a href="https://igem.org/Team.cgi?year=2010&team_name=HKU-Hong_Kong" target="_self">
<img border="0" alt="testing123!" src="https://static.igem.org/mediawiki/2010/8/88/Logosil.png" id="b1" width="100%" height="50px" ="mouseOver()" onmouseout="mouseOut()" /></a>
<img border="0" alt="testing123!" src="https://static.igem.org/mediawiki/2010/8/88/Logosil.png" id="b1" width="100%" height="50px" ="mouseOver()" onmouseout="mouseOut()" /></a>

Revision as of 10:38, 16 October 2010