Go Back   Webmaster Forum > Development > Programming > JavaScript
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Junior Geek
Posts: 65
Join Date: Feb 2007
iTrader: (0)
[ZB] add submenu links - 12-03-2007

Written for zetaboards

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

original request: Board Message

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
Reply With Quote
Reply


Thread Tools



Advertise Here for just $6 per month

vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com