Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Add link to submenu
Topic Started: Dec 3 2007, 12:40 AM (3,081 Views)
Godkillah
Member
[ * ]
Wrote this yesterday on request of chris,
didn't post it yet because i whasn't sure if it worked and i whas out of time so couldn't test
no i tested it and it worked so here it is


PREVIEW: none, if anyone else makes 1 I'll add it but i don't feel like making 1 and i think its pretty clear what it does anyway

add anywhere under the submenu
Quote:
 
<script>
/*Add submenu link
by Godkillah,
phantom-designs.net*/

var Submenu=[];n=0
Submenu[n++]=['LINK TEXT','LINK URL']

for(ii=0;ii<Submenu.length;ii++){
document.getElementById("submenu").innerHTML="<a href='"+Submenu[ii][1]+"'>"+Submenu[ii][0]+"</a>"+document.getElementById("submenu").innerHTML
}
</script>


Add/Edit/Remove this to make more links
The URL/SRC of the link
The Text you'll see

enjoy
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Isn't this the same mod: http://support.zetaboards.com/topic/485/1/#new
Offline Profile Quote Post Goto Top
 
Godkillah
Member
[ * ]
i guess he wrote it before me,
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Yep. But the difference is that yours prepend the links while his append them. Nice one GK. I knew yours has to be special somewhat.
Edited by Eureka, Dec 3 2007, 01:18 AM.
Offline Profile Quote Post Goto Top
 
Godkillah
Member
[ * ]
yeah i prefer having the link at the left,
did that for my shop because else no1 would notice the link
Offline Profile Quote Post Goto Top
 
Chireru
Member
[ * ]
lol
then they get made and nobody uses the code right?
lol
jk
nice code GK
although, I prefer using the Board Template box for editing the submenu
:)
Offline Profile Quote Post Goto Top
 
Chip_J
Member
[ *  * ]
Where do these codes go? Where is under sub menu?
Offline Profile Quote Post Goto Top
 
Chip_J
Member
[ *  * ]
hahah nvm
Offline Profile Quote Post Goto Top
 
Darkazn95
Member Avatar
Member
[ * ]
I don't get it but where is under the Submenu. I'm pretty new at this but I need help on this.
Edited by Darkazn95, Jun 6 2008, 04:18 PM.
Offline Profile Quote Post Goto Top
 
Darkazn95
Member Avatar
Member
[ * ]
Sorry for double posting but I got it!
Offline Profile Quote Post Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply