Post by acoolie530 on Feb 25, 2005 14:49:24 GMT
Name: Info center extras table
Compatibility: Firefox/IE
Edit: In code
Placement: Main Footer
Preview: Here
Notes: Real simple code. Was a request. This adds a table connected to the info center underneath the usersonline table. You can have your own image to the left of it, your own title, and your own message. You can place whatever you want in it, copyright, affliates, etc.
Edit: some people said that the <!-- was causing a prob so i removed it
Compatibility: Firefox/IE
Edit: In code
Placement: Main Footer
Preview: Here
Notes: Real simple code. Was a request. This adds a table connected to the info center underneath the usersonline table. You can have your own image to the left of it, your own title, and your own message. You can place whatever you want in it, copyright, affliates, etc.
<script type="text/javascript">
//Info table created by acoolie
//Do not redistribute or claim as own
var copyright = "blah.gif" //The url to the image that is displayed to the left of your message. If none, leave blank
var name = 'Your title' //The title of the new table (Users Online, Forum Statistics, etc.)
var message = 'Your message' //The message displayed
//No more editting
if(copyright==""){
var im = ""
} else {
var im = "<img src='"+copyright+"' border='0'>"
}
var tab = document.getElementsByTagName("table");
for(var n=0;n<tab.length;n++) {
if(tab[n].width=="100%" && tab[n].cellPadding=="4" && tab[n].cellSpacing=="1" && tab[n].innerHTML.match(/Info Center/i) && !tab[n].innerHTML.match(/Main Page/i)) {
tab[n].innerHTML = ""+tab[n].innerHTML+"<tr><td class='catbg' colspan='2'> <font size='2' class='cattext' color=''><b>"+name+"</b></font></td></tr><tr><td class='windowbg' width='20' valign='middle' align='center'>"+im+"</td><td class='windowbg2'><font size=1><table width='98%' cellpadding='3' align='center'><tr><td valign='top' align='left'><font size='1'>"+message+"</font></td></tr>"
}
}
</script>
Edit: some people said that the <!-- was causing a prob so i removed it