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 links to submenu
Topic Started: Nov 28 2007, 09:10 AM (3,673 Views)
Zefer
Member Avatar
I <3 PHP
[ *  * ]
Another code by me, more use to this one though!

Code:
 

<script type="text/javascript" language="JavaScript1.2">
/*
* Add links to submenu by Zefer
* Made November 2007
*/

var links=[]
links[links.length]=["Google", "http://google.com"]

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

</script>


If you want another link to be added, just add another:
Code:
 
links[links.length]=["Google", "http://google.com"]


Preview

Offline Profile Quote Post Goto Top
 
badtzmaru
Member Avatar
Member
[ *  *  * ]
Thanks for this, too!! :D I know this will come to be useful in the future!

EDIT: Okay, both of your codes aren't working on my board. :( Is it because I set my board width as 800 px?
Edited by badtzmaru, Nov 28 2007, 09:26 AM.
Offline Profile Quote Post Goto Top
 
Mysticwizard2005
Member Avatar
Member
[ * ]
Working great on my board. Thanks for the code. :)
Offline Profile Quote Post Goto Top
 
Nicola
Darth Vader's Sewing Instructor

Has been checked, works correctly.
Offline Profile Quote Post Goto Top
 
James
Imagine♥
[ *  * ]
Awesome ^_^
Offline Profile Quote Post Goto Top
 
CrAzYsHoT
Member
[ *  * ]
SWEET
Offline Profile Quote Post Goto Top
 
technetic
Member
[ * ]
It doesnt merge them for me...
Offline Profile Quote Post Goto Top
 
Victrixs
Member Avatar
Website Developer
[ *  *  * ]
nice code I'm using it right now.
Offline Profile Quote Post Goto Top
 
..SMOKEY..
Member
[ *  * ]
maybe i'm missing something but i see no google sub menu link as indicated in the preview
Offline Profile Quote Post Goto Top
 
Spark
Member Avatar
Nukem Corporation
[ *  * ]
Also, one very long code. You don't need all those spaces.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply