JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

adding URL to just top menu level?

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
keithl



Joined: 22 Sep 2003
Posts: 2

PostPosted: Wed Oct 01, 2003 3:12 am    Post subject: adding URL to just top menu level? Reply with quote

I have this site:
http://www.keithlubrant.com/_kl/

and I want to add a URL to just the top node (for example, the ABOUT option). There are no dropdown options. How do I go about that?

Here is what I have:

var MENU_ITEMS1 =
[
{"pos":"relative", "itemoff":[0,50], "leveloff":[20,0], "style":STYLE, "size":[20,40]},
{code:"about", format:{size:[20,50], itemoff:[0,0],url:"http://yahoo.com"}
}

Thanks,
Keith
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed Oct 08, 2003 6:07 pm    Post subject: Reply with quote

You are almost right - except for the place for "url":
Code:
var MENU_ITEMS1 = [
        {"pos":"relative", "itemoff":[0,50], "leveloff":[20,0], "style":STYLE, "size":[20,40]},
        {code:"about", url:"http://yahoo.com", format:{size:[20,50], itemoff:[0,0]}}

"Url" should not be placed into the "format" section.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1