inherit
Official Code helper
60405
0
Feb 18, 2012 23:45:36 GMT -8
(¯`•DregondRahl•._)
Set~[Me]~Free
6,637
October 2005
dregondrahl
|
Post by (¯`•DregondRahl•._) on Sept 17, 2006 9:50:44 GMT -8
MAIN FOOTER [Requires Normal category spliter]
What this code does it is adds different head/base images for differnt categories, it was made as a request a while back.
<script type="text/javascript"> <!--
// Different Categories Head-Base Images -DregondRahl // donot repost or edit copyright
function caty(catID,headImg,baseImg){ var table = document.getElementsByTagName('table'); for(i=0; i<table.length; i++){ if(table.className == 'bordercolor' && table.cellPadding == '0' && table.innerHTML.match(new RegExp('<a name="?'+catID+'"?>','i'))){ var Head=document.createElement('center'); var Base=document.createElement('center'); Head.innerHTML="<img src='"+headImg+"'/>"; Base.innerHTML="<img src='"+baseImg+"'/>"; table.parentNode.insertBefore(Head, table); table.parentNode.insertBefore(Base, table.nextSibling); } } }
caty('CATAGORY ID','HEAD IMG URL','BASE IMG URL'); caty('CATAGORY ID','HEAD IMG URL','BASE IMG URL'); caty('CATAGORY ID','HEAD IMG URL','BASE IMG URL');
//--> </script>
CATEGORY ID : Enter the catagory id, it can be found by entering into a board inside that category and clicking the category name from the nav bar on top in this case its 'General' so when you click on it you'll be directed to a /index.cgi#misc where misc is the category ID.
HEAD IMG URL: Enter the URL of the head image here.
BASE IMG URL: Enter the URL of the Base image here.
for more categories just add more
caty('CATAGORY ID','HEAD IMG URL','BASE IMG URL');
|
|