JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
keithl
Joined: 22 Sep 2003 Posts: 2
|
Posted: Wed Oct 01, 2003 3:12 am Post subject: adding URL to just top menu level? |
|
|
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
|
Posted: Wed Oct 08, 2003 6:07 pm Post subject: |
|
|
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 |
|
 |
|
|