inherit
33488
0
Jun 20, 2011 22:24:24 GMT -8
manilli
135
November 2004
manilli
|
Post by manilli on Feb 17, 2006 23:16:45 GMT -8
Forum URL: elvinrealmsrpg.proboards74.comI also noticed on my board that it wont let me use cell highlight, I wanted to have an image for my varover cell highlight. I believe that I entered the code in correctly and only changed what was red in the instructions, but it just wont let me see it. what can I do?
|
|
inherit
27353
0
Nov 30, 2013 13:08:47 GMT -8
xiØn
6 years is a long time.
16,973
July 2004
xi0n
|
Post by xiØn on Feb 17, 2006 23:27:08 GMT -8
Replace your current cell highlight code with this one :
<script type="text/javascript"> <!-- /* Main page/boards image highlight
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times. */
// Image for the mouseover var overImage = "URL TO IMAGE";
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>
|
|
inherit
33488
0
Jun 20, 2011 22:24:24 GMT -8
manilli
135
November 2004
manilli
|
Post by manilli on Feb 17, 2006 23:43:33 GMT -8
alrighty, it works now, thanks for your help
|
|
inherit
27353
0
Nov 30, 2013 13:08:47 GMT -8
xiØn
6 years is a long time.
16,973
July 2004
xi0n
|
Post by xiØn on Feb 18, 2006 0:03:24 GMT -8
You are welcome.
|
|