Post by Jordan on Apr 17, 2007 17:51:48 GMT -8
Name: Calendar Cell Highlight
Description: Adds a cell highlight on the calendar page, and links you to any calendar entry pages.
Placement: Main Footers
Editing: These two variables for the different hex colors. If you don't know what I'm talking about look at the calendar page and you will notice every other row is a different color. If they aren't then you can make them the same. w = windowbg : w2 = windowbg2
// Calendar Cell Highlight - Triad
var w = "efefef";
var w2 = "f6f6f6";
function calendarCellHighlight(){
var td = document.getElementsByTagName("td");
for(x=4;x<td.length;x++){
if(td[x].width.match(/^(14|15)%$/i) && td[x].height=="75" && td[x].vAlign=="top" && td[x].className.match(/windowbg$/i) && td[x].innerHTML.match(/\d+/i)){
td[x].onmouseover=function(){this.style.backgroundColor=w2; (this.innerHTML.match(/<a\shref=/i)) ? this.style.cursor="pointer" : null;}
td[x].onmouseout=function(){this.style.backgroundColor=this.bgColor;}
td[x].onclick=function(){(this.innerHTML.match(/<a\shref=/i)) ? location=this.getElementsByTagName("a")[0].href : null;}
} else if(td[x].width.match(/^(14|15)%$/i) && td[x].height=="75" && td[x].vAlign=="top" && td[x].className.match(/windowbg2$/i) && td[x].innerHTML.match(/\d+/i)){
td[x].onmouseover=function(){this.style.backgroundColor=w; (this.innerHTML.match(/<a\shref=/i)) ? this.style.cursor="pointer" : null;}
td[x].onmouseout=function(){this.style.backgroundColor=this.bgColor;}
td[x].onclick=function(){(this.innerHTML.match(/<a\shref=/i)) ? location=this.getElementsByTagName("a")[0].href : null;}
}
}
}
if(location.href.match(/action=calendar(&month=(.+?)?)?$/i)){
calendarCellHighlight();
}
//--></script>
Description: Adds a cell highlight on the calendar page, and links you to any calendar entry pages.
Placement: Main Footers
Editing: These two variables for the different hex colors. If you don't know what I'm talking about look at the calendar page and you will notice every other row is a different color. If they aren't then you can make them the same. w = windowbg : w2 = windowbg2
var w = "efefef";<script type="text/javascript"><!--
var w2 = "f6f6f6";
// Calendar Cell Highlight - Triad
var w = "efefef";
var w2 = "f6f6f6";
function calendarCellHighlight(){
var td = document.getElementsByTagName("td");
for(x=4;x<td.length;x++){
if(td[x].width.match(/^(14|15)%$/i) && td[x].height=="75" && td[x].vAlign=="top" && td[x].className.match(/windowbg$/i) && td[x].innerHTML.match(/\d+/i)){
td[x].onmouseover=function(){this.style.backgroundColor=w2; (this.innerHTML.match(/<a\shref=/i)) ? this.style.cursor="pointer" : null;}
td[x].onmouseout=function(){this.style.backgroundColor=this.bgColor;}
td[x].onclick=function(){(this.innerHTML.match(/<a\shref=/i)) ? location=this.getElementsByTagName("a")[0].href : null;}
} else if(td[x].width.match(/^(14|15)%$/i) && td[x].height=="75" && td[x].vAlign=="top" && td[x].className.match(/windowbg2$/i) && td[x].innerHTML.match(/\d+/i)){
td[x].onmouseover=function(){this.style.backgroundColor=w; (this.innerHTML.match(/<a\shref=/i)) ? this.style.cursor="pointer" : null;}
td[x].onmouseout=function(){this.style.backgroundColor=this.bgColor;}
td[x].onclick=function(){(this.innerHTML.match(/<a\shref=/i)) ? location=this.getElementsByTagName("a")[0].href : null;}
}
}
}
if(location.href.match(/action=calendar(&month=(.+?)?)?$/i)){
calendarCellHighlight();
}
//--></script>