|
Post by Jacob Marshall on Apr 13, 2009 15:58:06 GMT -5
<script type="text/javascript"> <!-- // Image rollover effect function doRollOver(oldsrc, newsrc, title){ var img = { oldsrc: null, oldtitle: null }; var iImg = document.getElementsByTagName("img"); for(i = 0; i < iImg.length; i ++){ if(iImg.item(i).src.match(new RegExp(oldsrc))){ iImg.item(i).onmouseover = function(){ img.oldsrc = this.src; img.oldtitle = this.alt; this.src = newsrc; this.title = title; } iImg.item(i).onmouseout = function(){ this.src = img.oldsrc; this.title = img.oldtitle; } } } } doRollOver("http://i29.photobucket.com/albums/c285/cena007006/home1.png", "http://i29.photobucket.com/albums/c285/cena007006/home2.png", "home"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/search1-1.png", "http://i29.photobucket.com/albums/c285/cena007006/search2.png", "search"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/members1-2.png", "http://i29.photobucket.com/albums/c285/cena007006/members2.png", "members"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/calendar1-1.png", "http://i29.photobucket.com/albums/c285/cena007006/calendar2.png", "calendar"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/admin1-1.png", "http://i29.photobucket.com/albums/c285/cena007006/admin2.png", "admin"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/profile1-1.png", "http://i29.photobucket.com/albums/c285/cena007006/profile2.png", "profile"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/logout1.png", "http://i29.photobucket.com/albums/c285/cena007006/logout2.png", "logout"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/login1-1.png", "http://i29.photobucket.com/albums/c285/cena007006/login2.png", "login"); doRollOver("http://i29.photobucket.com/albums/c285/cena007006/register1.png", "http://i29.photobucket.com/albums/c285/cena007006/register2.png", "register"); //--> </script>
|
|