inherit
38685
0
Jun 10, 2012 14:48:05 GMT -8
DMOC
1,023
March 2005
dmoc
|
Post by DMOC on May 1, 2005 12:18:33 GMT -8
In my forum, I have to click on the words (say I have a rules board. I have to click on the 'rules' text to get into that board). However, in this forum, you just have to click on any part of the rectangle and it will lead you into the thread/board. Does anyone know how to have a code do that?
|
|
aaron
New Member
Posts: 9
inherit
40807
0
May 2, 2005 15:57:03 GMT -8
aaron
9
May 2005
aaronc
|
Post by aaron on May 1, 2005 12:20:54 GMT -8
That's because this board has a cell highlight code.
|
|
inherit
38685
0
Jun 10, 2012 14:48:05 GMT -8
DMOC
1,023
March 2005
dmoc
|
Post by DMOC on May 1, 2005 12:24:00 GMT -8
What's a cell highlight code?
|
|
inherit
40668
0
Jul 1, 2005 10:08:51 GMT -8
Spiraster
31
April 2005
spiraster
|
Post by Spiraster on May 1, 2005 12:25:18 GMT -8
And heres the cell highlight code:
<SCRIPT LANGUAGE="JavaScript"> <!-- /* Cell Highlight & Link Copyright © 2003 Craig Suffolk, ProBoards.com All Rights Reserved */
var mouseOverColor = 'Hex colour'; var statusMessage = 'Name'; window.status = statusMessage;
cellHigh = document.getElementsByTagName('TD'); for(ch=0;ch<cellHigh.length;ch++) { if((cellHigh[ch].className=="windowbg2" && cellHigh[ch].width=="66%") || (cellHigh[ch].className=="windowbg" && cellHigh[ch].width=="48%")) { if (cellHigh[ch].width=="48%") {var num=0;} else {var num=1;} cellHigh[ch].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundColor=mouseOverColor; window.status=this.getElementsByTagName('b')[0].innerHTML;}; cellHigh[ch].onmouseout = function(){this.style.backgroundColor=this.bgColor;window.status=statusMessage;}; cellHigh[ch].onclick = function(){location = this.getElementsByTagName('a')[num].href;}; }} // --> </script>
put it in you footer, and replace 'Hex colour' and 'Name'.
Hex colour being the colour you want the highlight to be, and Name being what you want the status bar to say.
|
|
inherit
38685
0
Jun 10, 2012 14:48:05 GMT -8
DMOC
1,023
March 2005
dmoc
|
Post by DMOC on May 1, 2005 12:35:55 GMT -8
It works, thanks.
|
|
inherit
40668
0
Jul 1, 2005 10:08:51 GMT -8
Spiraster
31
April 2005
spiraster
|
Post by Spiraster on May 1, 2005 12:36:55 GMT -8
No prob.
|
|