inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Dec 15, 2005 12:19:46 GMT -8
Main FooterWhat this code does is allows you to give certain categories different gradients, to make them stand out more. <script type="text/javascript"> <!-- /* different gradients for each category */
if(location.href.match(/\.com\/?(index.cgi)?\??((action=home)|(#\w+))?$/)) { function switchCat(n,g) { if (g.match(/^http:/)) { var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).className == 'catbg' && td.item(i).firstChild.name == n) { td.item(i).style.backgroundImage = 'url('+ g +')'; break; } } } }
switchCat('Category ID','Gradient URL');
}
//--> </script> Edit the line that looks like this, or repeat it to change more than one category: switchCat('Category ID','Gradient URL');The category ID can be found by going into a board within that category and then selecting the Category name from the navigation menu, for example, here it would be 'General'. When you're taken back to the main page, look at the URL. The category ID is the part after the #, in this case 'misc' Updates: 17th July - added a check to make sure it only continued if a valid url was specified - craig
|
|