Welcome Guest [Log In] [Register]
Viewing Single Post From: Add links to preferences
Godkillah
Member
[ * ]
A friend requested this to me at msn,
it basically adds links to the preferences at the top (next to the Welcome name [Sign out])
it works in both FF and IE and i don't think any other browser will have problems with this

Add it anywhere under the top menu
Quote:
 
<script>
/*Add links to preferences
by Godkillah from:
phantom-designs.net*/
var AddLinks=[];n=0
AddLinks[n++]=['My Link','http://www.MyLink.com']
AddLinks[n++]=['My 2nd Link','http://www.MyLink2.com']
AddLinks[n++]=['My Link 3','http://www.My3thLink.com']

Addmenu='';for(ii=0;ii<AddLinks.length;ii++){
Addmenu+='<li><a href="'+AddLinks[ii][1]+'">'+AddLinks[ii][0]+'</a></li>'
}
if(document.getElementById("menu_ucp"))
document.getElementById("menu_ucp").getElementsByTagName("ul")[0].innerHTML+=Addmenu
</script>


i think how to edit it etc. should be quite easy,
to be sure everyone will understand it i colored it though and will give a small instruction.

this is what you can add/edit/remove in the code to make new links in the preferences
this is the name of the link, basically the text they will see
this is the URL they will got to when they click the link

added it to my testboard where i also got my money code on, so here it is
PREVIEW: http://s1.zetaboards.com/Godkillah_Codes/index/

enjoy
Edited by Godkillah, Nov 30 2007, 01:54 PM.
Offline Profile Quote Post
Add links to preferences · User Created Codes