Post by *Dan! on Jul 21, 2006 20:07:59 GMT -8
Global Footers
Variable Editing
content: This is were your page content will go. You can use html in here, just do not sperate tags, keep them like this - <table><tr><td> etc. Also use signle quotes (') instead of double (").
guestDisplay: choose yes if you want your new page to dysplay to guests, or no if you only want it to show to members.
pageTitle: Name your page here, this will show up in the navagation tree.
linkImage: Put the url of the button you would like to use that will link to your page.
~dan
<script type="text/Javascript">
//Create New Page v0.1
//Created by: *Dan! *aka stardnl
//(c)2006 - G101 Designs and stardnl.com
//Edit vars
var content = "test";
var guestDisplay = "yes";
var pageTitle = "Blank Page";
var linkImage = "http://s2.images.proboards.com/menu/home.gif";
//Do not edit Below
function link(){
var td = document.getElementsByTagName('td');
var linkeh = 'index.cgi?action=page';
var pbutton = document.createElement('img');
var plink = document.createElement('a');
pbutton.src = linkImage;
pbutton.border = '0';
plink.href = linkeh;
plink.appendChild(pbutton);
td[5].appendChild(plink);
}
if(guestDisplay=="no"){
if(pb_username=="Guest"){
}else{
link();
}
}else{
link();
}
var treenav = document.title.split(" - ")[0];
function navetree(newtitle){
document.title = treenav+' - '+newtitle;
}
var td = document.getElementsByTagName('td');
if(location.href.match(/action=page$/)){
for(t=0;t<td.length;t++){
if(td[t].vAlign == 'top' && td[t].getElementsByTagName('A').length > 0 && td[t].getElementsByTagName('A').item(0).className == 'nav'){
td[t].parentNode.parentNode.style.display="none";
document.title = "" + treenav + "";
document.write('<table width="92%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td colspan="3"><table width="92%" border="0" cellpadding="0" cellspacing="0"><tr><td><a href="/index.cgi" class="nav">'+treenav+'</a> :: <fontsize="1">'+pageTitle+'</font></td></tr></table>'+content+'<br/><br/>');
var thisselect = document.getElementsByTagName("select");
for(z=0; z < thisselect.length; z++){
if(thisselect[z].innerHTML.match(/Forum Jump/i)){
thisselect[z].style.display ="none";
}
}
}
}
}
</script>
Variable Editing
var content = "test";
var guestDisplay = "yes";
var pageTitle = "Blank Page";
var linkImage = "http://s2.images.proboards.com/menu/home.gif";
content: This is were your page content will go. You can use html in here, just do not sperate tags, keep them like this - <table><tr><td> etc. Also use signle quotes (') instead of double (").
guestDisplay: choose yes if you want your new page to dysplay to guests, or no if you only want it to show to members.
pageTitle: Name your page here, this will show up in the navagation tree.
linkImage: Put the url of the button you would like to use that will link to your page.
~dan