inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jun 5, 2005 4:05:41 GMT -8
<script type="text/javascript"> <!--
// Created by PopThosePringles
// Image for the mouseover var overImage = "IMAGE URL";
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className.match(/^windowbg/i) && iCell.item(c).width.match(/^(66|48|43)%/)){ if(document.all){ iCell.item(c).onmouseenter = function(){ this.style.backgroundImage = "url('" + overImage + "')"; } iCell.item(c).onmouseleave = function(){ this.style.backgroundImage = ""; } } else { for(a = 0; a < iCell.item(c).attributes.length; a ++){ if(iCell.item(c).attributes.item(a).nodeName.match(/^onmouseover$/i)){ with(iCell.item(c).attributes.item(a)){ nodeValue = "this.style.backgroundImage = 'url(\\'" + overImage + "\\')'; " + nodeValue; } } if(iCell.item(c).attributes.item(a).nodeName.match(/^onmouseout$/i)){ with(iCell.item(c).attributes.item(a)){ nodeValue = "this.style.backgroundImage = ''; " + nodeValue; } } } } } }
//--> </script>
Global footers
Add the image in the top of the script
|
|