game
Junior Member
Code Digger
Posts: 59
game said 0 great things
|
Post by game on Sept 4, 2012 20:35:38 GMT -8
On the main page, instead of the cell highlight on mouseover, the complete row highlights. What to Edit- You will need to eidt your desired mouseover color in the beginning of the code.
var mouseover = "#6699FF"; //Edit mouseover colorHow It Works- When a board is hovered that boards complete row highlights instead of the default method which only highlights that cell.
- When a board is unhovered that boards row returns back to it's normal state
PlacementPreview<script type = "text/javascript"> //Cell Highlight full row on Main Page //Placement: Main Footer //Coded by Game //http://gamesplace.boards.net
var mouseover = "#6699FF"; //Edit mouseover color
//No Editing Required Below This Point var i; var td = document.getElementsByTagName("td"); for (i = 0; i < td.length; i++) { if (td[i].width == "66%" && td[i].className === "windowbg2") { wbg = td[i].previousSibling.style.backgroundColor; wbg2 = td[i].style.backgroundColor; td[i].onmouseover = function() { this.style.backgroundColor = mouseover; this.previousSibling.style.backgroundColor = mouseover; this.nextSibling.style.backgroundColor = mouseover; this.nextSibling.nextSibling.style.backgroundColor = mouseover; this.nextSibling.nextSibling.nextSibling.style.backgroundColor = mouseover; } td[i].onmouseout = function () { this.style.backgroundColor = wbg2; this.previousSibling.style.backgroundColor = wbg; this.nextSibling.style.backgroundColor = wbg; this.nextSibling.nextSibling.style.backgroundColor = wbg; this.nextSibling.nextSibling.nextSibling.style.backgroundColor = wbg2; } } } </script>
|
|
|
Post by Wormopolis on Sept 5, 2012 1:39:38 GMT -8
|
|
game
Junior Member
Code Digger
Posts: 59
game said 0 great things
|
Post by game on Sept 5, 2012 2:15:01 GMT -8
;D It seems that way. I guess i need to start checking your database before submitting. I've used your codes for years and thought I knew about every code you have. (I'm obviously exaggerating). I am working on one that displays an image onmouseover now. Actually I have it made, (just for the board cell)but a person requested a single image stretch across the complete row. Can't figure that one out yet. though the request was just made last night..... And plus, this will most likely lead to a further request that each row have it's individual image. Oh oh, I just realized, you probably already have that also. ;D
|
|