Post by ash ♥ on Jun 16, 2006 10:45:05 GMT -5
Created by: Scorpian
Cross-Browser: Yes
Tested: Yes
<script type='text/javascript' language='JavaScript'>
/* Member links v1 by Scorpian
roddyinnov.proboards75.com
Repost if you want, but leave
this header in-tact */
var riGuestLinks = new Array();
riGuestLinks[0] = ["Login","index.cgi?action=login"];
riGuestLinks[1] = ["Register","index.cgi?action=register"];
riGuestLinks[2] = ["Link Text","Link URL"];
var riMemberLinks = new Array();
riMemberLinks[0] = ["Link Text","Link URL"];
riMemberLinks[1] = ["Link Text","Link URL"];
riMemberLinks[2] = ["Link Text","Link URL"];
var riStart = "Useful Links: [ ";
var riSpacer = " | ";
var riFinish = " ]";
/*--- Do Not edit below ---*/
var riUser = pb_username;
document.write(riStart);
if(riUser=="Guest"){
for(x in riGuestLinks){
if(x!=0){
document.write(riSpacer);
}
document.write("<a href='"+riGuestLinks[x][1]+"' target='_blank'>"+riGuestLinks[x][0]+"</a>");
}
}else{
for(x in riMemberLinks){
if(x!=0){
document.write(riSpacer);
}
document.write("<a href='"+riMemberLinks[x][1]+"' target='_blank'>"+riMemberLinks[x][0]+"</a>");
}
}
document.write(riFinish);
</script>
Put this wherever you want it to show up. It's a relativaly simple code, but also a useful one. It displays a bar of links to your specifications. Here's what you gotta do. I've color-coded everything for you .
The red number needs to increase by 1 for every link, starting with 0.
The first part specifies the links you want guests to see. The second part indicates links that you want members to see. That part is self-explanatory. You should'nt have any trouble figuring out which is which.
The yellow part is the text you want to be displayed for a link. You may use HTML in this part.
The green part it the URL of the link for the text on the same line. I've given you 2 examples to work with in the guest part.
The orange part is what you want to be displayed in front of the links. You can change this to like "My Site's Useful Links:" or something.
The magenta part is what you want to be displayed in-between each link.
The cyan part is what you want to be displayed after the links.
Cross-Browser: Yes
Tested: Yes
<script type='text/javascript' language='JavaScript'>
/* Member links v1 by Scorpian
roddyinnov.proboards75.com
Repost if you want, but leave
this header in-tact */
var riGuestLinks = new Array();
riGuestLinks[0] = ["Login","index.cgi?action=login"];
riGuestLinks[1] = ["Register","index.cgi?action=register"];
riGuestLinks[2] = ["Link Text","Link URL"];
var riMemberLinks = new Array();
riMemberLinks[0] = ["Link Text","Link URL"];
riMemberLinks[1] = ["Link Text","Link URL"];
riMemberLinks[2] = ["Link Text","Link URL"];
var riStart = "Useful Links: [ ";
var riSpacer = " | ";
var riFinish = " ]";
/*--- Do Not edit below ---*/
var riUser = pb_username;
document.write(riStart);
if(riUser=="Guest"){
for(x in riGuestLinks){
if(x!=0){
document.write(riSpacer);
}
document.write("<a href='"+riGuestLinks[x][1]+"' target='_blank'>"+riGuestLinks[x][0]+"</a>");
}
}else{
for(x in riMemberLinks){
if(x!=0){
document.write(riSpacer);
}
document.write("<a href='"+riMemberLinks[x][1]+"' target='_blank'>"+riMemberLinks[x][0]+"</a>");
}
}
document.write(riFinish);
</script>
Put this wherever you want it to show up. It's a relativaly simple code, but also a useful one. It displays a bar of links to your specifications. Here's what you gotta do. I've color-coded everything for you .
The red number needs to increase by 1 for every link, starting with 0.
The first part specifies the links you want guests to see. The second part indicates links that you want members to see. That part is self-explanatory. You should'nt have any trouble figuring out which is which.
The yellow part is the text you want to be displayed for a link. You may use HTML in this part.
The green part it the URL of the link for the text on the same line. I've given you 2 examples to work with in the guest part.
The orange part is what you want to be displayed in front of the links. You can change this to like "My Site's Useful Links:" or something.
The magenta part is what you want to be displayed in-between each link.
The cyan part is what you want to be displayed after the links.