Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:15:08 GMT
<script type="text/javascript"> <!--
// Last post cell highlight // Created by Peter
// Highlight color var highColor = "#efefef";
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className == "windowbg2" && iCell.item(c).width == "24%" && iCell.item(c).vAlign == "top"){ iCell.item(c).onmouseover = function(){ this.style.cursor = "pointer"; this.style.backgroundColor = highColor; if(this.getElementsByTagName("a").item(1)){ this.title = this.getElementsByTagName("a").item(1).innerHTML; } } iCell.item(c).onmouseout = function(){ this.style.cursor = ""; this.style.backgroundColor = ""; } if(iCell.item(c).getElementsByTagName("a").item(1)){ iCell.item(c).onclick = function(){ location.href = this.getElementsByTagName("a").item(1).href; } } } }
//--> </script>
Main Footer.
Change the highlight color in the top of the script.
|
|