Team:HKU-Hong Kong/header
From 2010.igem.org
(Difference between revisions)
Line 74: | Line 74: | ||
</style> | </style> | ||
- | <script | + | <script language="JavaScript"> |
- | + | <!-- | |
- | { | + | // PRELOADING IMAGES |
- | + | if (document.images) { | |
+ | img_on =new Image(); img_on.src ="https://static.igem.org/mediawiki/2010/1/15/Hku1a.png"; | ||
+ | img_off=new Image(); img_off.src="https://static.igem.org/mediawiki/2010/0/00/Hku1b.png"; | ||
+ | |||
+ | img1_on =new Image(); img1_on.src =" https://static.igem.org/mediawiki/2010/1/15/Hku1a.png""; | ||
+ | img1_off=new Image(); img1_off.src=" https://static.igem.org/mediawiki/2010/0/00/Hku1b.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 | + | |
- | { | + | function movr(k) { |
- | document. | + | if (document.images) |
- | document. | + | eval('document.img'+k+'.src=img'+k+'_on.src'); |
} | } | ||
+ | |||
+ | function mout(k) { | ||
+ | if (document.images) | ||
+ | eval('document.img'+k+'.src=img'+k+'_off.src'); | ||
+ | } | ||
+ | |||
+ | function handleOver() { | ||
+ | if (document.images) | ||
+ | document.imgName.src=img_on.src; | ||
+ | } | ||
+ | |||
+ | function handleOut() { | ||
+ | if (document.images) | ||
+ | document.imgName.src=img_off.src; | ||
+ | } | ||
+ | |||
+ | //--> | ||
</script> | </script> | ||
+ | |||
</head> | </head> | ||
<body> | <body> | ||
Line 94: | Line 132: | ||
<div id="left"><div class="column-in"> | <div id="left"><div class="column-in"> | ||
+ | |||
- | + | <a href="https://2010.igem.org/Team:HKU-Hong_Kong" target="_self" | |
- | <a href="https://2010.igem.org/Team:HKU-Hong_Kong" target="_self"> | + | onMouseOver="movr(1);return true;" |
- | <img | + | onMouseOut="mout(1);return true;" |
- | + | onClick="return false;" | |
+ | ><img name=img1 width=100% | ||
+ | alt="This image changes when you point at it!" | ||
+ | src=" https://static.igem.org/mediawiki/2010/0/00/Hku1b.png" | ||
+ | ></a> | ||
+ | |||
<a href="https://2010.igem.org/Team:HKU-Hong_Kong/Team" target="_self"> | <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> | <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> |
Revision as of 09:45, 16 October 2010