inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Aug 3, 2005 6:55:50 GMT -8
Was a request, but thought it might be useful for others.
Global footer
<script type="text/javascript"> <!--
// Color for today var todayColor = "blue";
// Color for yesterday var yesterColor = "green";
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className == "windowbg2" && iCell.item(c).width.match(/^2(0|4)%/)){ if(iCell.item(c).firstChild.innerHTML.match(/(Today|Yesterday)/)){ switch(RegExp.$1){ case "Today" : iCell.item(c).firstChild.getElementsByTagName("b").item(0).style.color = todayColor; break; case "Yesterday" : iCell.item(c).firstChild.innerHTML = iCell.item(c).firstChild.innerHTML.replace(/(Yesterday)/, "<span style='color: " + yesterColor + "'>$1</span>"); break; } } } }
//--> </script>
|
|