100%
|
Post by Aaron on Apr 10, 2004 11:12:33 GMT -8
This is my first actual code! But I got a lot of help from Fla5hba5h! And it is based on the "colored thread title" code. <script language=javascript> <!-- //by Naruto with a lot of help from Fla5hba5H function colorboard(board,color) { for (cb=0;cb<document.links.length;cb++) if (document.links[cb].href.match( new RegExp('board='+board+'$') )) document.links[cb].style.color=color; }
colorboard('board id','color'); // --> </script>
This will change the color of links to certain boards on your forum's main page. Just edit this line to your board id that you want, and the color you want the link to be: And to add more than 1 board's link to be colored just add more of these: colorboard('board id','color'); until you get all the boards you want. Preview: sharingan.proboards2.com/index.cgiLook at the board "codes". It is black instead of blue. Many thanks to Fla5hba5H on helping me make this! **IMPORTANT** You must make it the board's id! which is the id in the url that says something like index.cgi?board=blah If your board title is "General" and the id is "blah", then you have to use blah as the id. Main Footer.
|
|
|
Post by ShadowyOne on Apr 10, 2004 11:33:27 GMT -8
I still have that link to remind me of the old layout! And a good code as well. It'll bring attention to some members on some boards....
|
|