Post by Shin™ on Mar 8, 2005 15:01:47 GMT
Browser Compatibility: Cross-Browser
Preview: cellhightest001.proboards40.com/index.cgi
This Cell Highlight code provides a cell highlight for the following things:
For the Main Page:
For the Boards:
Basically it highlights and links just about everything you could want highlighted and linked on the main page and boards. Since everyone requests a cell highlight with link for this and that, I made a single code to do all of that.
If you are already using cell highlight code(s) for those things, remove the old ones to avoid confliction.
All Footers:
Preview: cellhightest001.proboards40.com/index.cgi
This Cell Highlight code provides a cell highlight for the following things:
For the Main Page:
- Highlights and links the board cells to the boards
- Highlights and links the Last Post cells to the poster's profile
For the Boards:
- Highlights and links the thread cells to the threads
- Highlights and links the Started By cells to the poster's profile
- Highlights and links the Last Post cells to the poster's profile
Basically it highlights and links just about everything you could want highlighted and linked on the main page and boards. Since everyone requests a cell highlight with link for this and that, I made a single code to do all of that.
If you are already using cell highlight code(s) for those things, remove the old ones to avoid confliction.
All Footers:
<script type="text/javascript">
/*
Multiple Cell Highlight with Links, coded by Shin. You may use freely, but do not repost this code without my prior, express permission.
*/
//Cell Highlight color below
var cellHighColor="FFFFFF";
//No editing beyond this point
var TD = document.getElementsByTagName("TD");
function highLight(){
this.style.cursor='hand';
this.style.backgroundColor=cellHighColor;
if(this.innerHTML.match(/by N\/A/i)){
window.status="Link unavailable";
} else {
if(this.width=="66%" || this.width=="48%"){
window.status=this.getElementsByTagName("B")[0].innerHTML;
} else {
window.status=this.getElementsByTagName("A")[0].innerHTML;
}}}
function highReset(){
this.style.backgroundColor=this.bgColor;
window.status="";
}
function highClick(){
if(this.width=="66%"){var ai = 1;} else {var ai = 0;}
if(!this.innerHTML.match(/by N\/A/i)){
location = this.getElementsByTagName("A")[ai].href;
}}
for(t=0;t<TD.length;t++){
if((TD[t].width=="66%" || TD[t].width=="48%" || TD[t].width=="24%" || (TD[t].width=="20%" && TD[t].vAlign=="middle")|| TD[t].width=="14%") && TD[t].className.match(/windowbg/i)){
TD[t].onmouseover = highLight;
TD[t].onmouseout = highReset;
TD[t].onclick = highClick;
}}
</script>