Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jul 7, 2005 11:33:40 GMT
Global Footer<script type="text/javascript"> <!-- /* sticky divider v1.3 by elindir 101support.proboards43.com */
var iheight="10"; var iclass="windowbg2"; var sticklock="stickylock.gif"; var stick="sticky.gif";
// Do not edit below if(document.location.href.match(/board=/)){ var table=document.getElementsByTagName('table'); for(e=0;e<table.length;e++) if(table[e].cellPadding=='4' && table[e].cellSpacing=='1'){ var tr=table[e].getElementsByTagName('tr'); for(r=0;r<tr.length;r++) if(tr[r].cells[0].width=='5%' && tr[r].cells[0].className=='windowbg2' && tr[r].innerHTML.match("("+stick+"|"+sticklock+")") && !tr[r+1].innerHTML.match("("+stick+"|"+sticklock+")") && !tr[r].innerHTML.match(/Announcement:/)){ if(tr[r].innerHTML.match(/checkbox/)){var col="8";}else{var col="7";} var row=table[e].insertRow(r); var cell=row.insertCell(0); cell.className=iclass; cell.height=iheight; cell.colSpan=col; }}} //--> </script>
The height of the divider bar can be set to any value. The class can either be set to any existing class name like "titlebg" or "catbg". Or if you want it to be different, you can give it a new class name and then use CSS in your header to give it a color, backgound image etc. If you have images different to the proboards default, you will need to edit their image names in purple Reason For Edit: Spelling
|
|
Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Dec 27, 2006 16:21:53 GMT
this should be posted in code support its working fine for me. What web browser do you use ? xXx|DANNY|xXx
|
|
Soul-Divider
Veteran
Mr. Flibble got himself a Mammoth tank!
Posts: 501
|
Post by Soul-Divider on Dec 27, 2006 19:58:59 GMT
I have it in my previous template and it's working just fine. But when I changed my template, it suddenly stopped from working. Can somebody tell me what went wrong please? Here's my board url: www.kilometer69.proboards102.com/index.cgido you have advanced moderation mode on? no stick divider's work while adv. Moderation mode is turned on. Everyone else will see it okay. AT the moment I can't see any stickied topics, only announcements, so I can't tell if it isn't working in general or just for you.
|
|
Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Dec 30, 2006 23:03:54 GMT
The problem is most likely that you have not edited the parts in purple to suit your sticky and stickylock images. I can't see the code in your footer though so cannot say for certain
|
|