Post by Ross on May 11, 2007 13:27:49 GMT
Main Footer
<script type="text/javascript">
<!--
/*
Highlight Todays Calendar Events
Ross - support.proboards.com
Please do not repost
*/
if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#\w+)?$/)) {
var a = document.getElementsByTagName('a');
for(i=0; i<a.length; i++) {
if(a.item(i).href.match(/ion=calendarview/)) {
var date = (new Date()).getDate();
var cal_links = a.item(i).parentNode.getElementsByTagName('a');
for(d=0; d<cal_links.length; d++) {
if(cal_links.item(d).innerHTML.match(new RegExp('#'+ date +'$'))) {
cal_links.item(d).innerHTML = cal_links.item(d).innerHTML.replace(/#\d{2}$/, '');
cal_links.item(d).style.color = '#336699';
cal_links.item(d).style.backgroundColor = '#ff6600';
}
}
break;
}
}
} else if(document.postForm && document.postForm.day) {
document.postForm.subject.maxLength = '47';
document.postForm.onsubmit = function() {
document.postForm.subject.value += '#' + document.postForm.day.value;
return true;
}
} else if(location.href.match(/ion=calendar(view|&|$)/)) {
document.title = document.title.replace(/#\d{2}/, '');
var f = document.getElementsByTagName('font');
for(i=0; i<f.length; i++) {
if(f.item(i).innerHTML.match(/#\d{2}/i)) {
f.item(i).innerHTML = f.item(i).innerHTML.replace(/#\d{2}(<|$)/g, '$1');
}
}
}
//-->
</script>
<script type="text/javascript">
<!--
/*
Highlight Todays Calendar Events
Ross - support.proboards.com
Please do not repost
*/
if(location.href.match(/\.com\/?(index.cgi)?\??(&?action=home)?(#\w+)?$/)) {
var a = document.getElementsByTagName('a');
for(i=0; i<a.length; i++) {
if(a.item(i).href.match(/ion=calendarview/)) {
var date = (new Date()).getDate();
var cal_links = a.item(i).parentNode.getElementsByTagName('a');
for(d=0; d<cal_links.length; d++) {
if(cal_links.item(d).innerHTML.match(new RegExp('#'+ date +'$'))) {
cal_links.item(d).innerHTML = cal_links.item(d).innerHTML.replace(/#\d{2}$/, '');
cal_links.item(d).style.color = '#336699';
cal_links.item(d).style.backgroundColor = '#ff6600';
}
}
break;
}
}
} else if(document.postForm && document.postForm.day) {
document.postForm.subject.maxLength = '47';
document.postForm.onsubmit = function() {
document.postForm.subject.value += '#' + document.postForm.day.value;
return true;
}
} else if(location.href.match(/ion=calendar(view|&|$)/)) {
document.title = document.title.replace(/#\d{2}/, '');
var f = document.getElementsByTagName('font');
for(i=0; i<f.length; i++) {
if(f.item(i).innerHTML.match(/#\d{2}/i)) {
f.item(i).innerHTML = f.item(i).innerHTML.replace(/#\d{2}(<|$)/g, '$1');
}
}
}
//-->
</script>