Team:Cornell/Templates/test
From 2011.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
<script language="javascript"> | <script language="javascript"> | ||
/*** Use the name of your directory where your images are ie.. images, Images, img, what ever you have named your image directory***/ | /*** Use the name of your directory where your images are ie.. images, Images, img, what ever you have named your image directory***/ | ||
- | |||
/*** List your images here that will be on the page and then the mouse over images in the 2nd array ***/ | /*** List your images here that will be on the page and then the mouse over images in the 2nd array ***/ | ||
Line 28: | Line 27: | ||
// SET MOUSEOVER IMAGE | // SET MOUSEOVER IMAGE | ||
function setOverImg(But, ID) { | function setOverImg(But, ID) { | ||
- | document.getElementById('button' + But + ID).src = | + | document.getElementById('button' + But + ID).src = overSources[But-1]; |
} | } | ||
// SET MOUSEOUT IMAGE | // SET MOUSEOUT IMAGE | ||
function setOutImg(But, ID) { | function setOutImg(But, ID) { | ||
- | document.getElementById('button' + But + ID).src = | + | document.getElementById('button' + But + ID).src = upSources[But-1]; |
} | } | ||
Revision as of 18:47, 18 July 2011