JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
undisclosed Guest
|
Posted: Tue Oct 07, 2003 6:23 am Post subject: multible submenu's |
|
|
is it possible to have multiple submenu's open with a menu?
i tried this
| Code: |
{"pos":[10,4], "itemoff":[0,112], "leveloff":[32,0], "style":TOP, "size":[25,112]},
{'code':'Main Menu', 'url':'',
sub:[
{"style":SUB, "leveloff":[28, 15]},
{code:"Main & |", url:"index.html", "format":{"size":[20, 50], "itemoff":[0, 0]},
sub:[
{"style":SUB2, "leveloff":[23, 200]},
{code:"This link will bring you back to the main welcome page.", url:"", "format":{"size":[20, 600], "itemoff":[0, 0]}},
]}
],
sub:[
{"style":SUB2, "leveloff":[52, 0]},
{code:"Main Menu.", url:"", "format":{"size":[20, 600], "itemoff":[0, 0]}}
]
},
|
basically what i want it to look like is this
| Code: |
--
Main Meun (mouse not over anything)
--
Main Menu (mouse over top menuitem)
Main |
Main Menu
--
Main Menu (mouse over the 2nd row " Main | " menuitem)
Main |
This link will bring you back to the main welcome page.
|
--
using the 3rd row as a descriptor row
i have it working great with the second row.. but i would like it to be on the top mouseover as well. |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Tue Oct 07, 2003 8:21 pm Post subject: also! |
|
|
| also, is there a way to add a 'print this page' script and an 'add to favorites' script within the menus? |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Tue Oct 07, 2003 11:42 pm Post subject: also.. |
|
|
ok.. 3rd issue..
great menu btw.
it seems, that the pixel definition works one way on my computer, but differently on another
if i have a sub menu item as
sub 1 | sub 2 | sub 3
with the | as part of sub 1.. and 2.. if i have it set to 70 px wide, and fits perfect on my IE6 or NS4.74 and a friend loads it in hers, they may not see it properly, where the | is under the sub menuitem (carrage return)
is there a way to define a menuitem to use the least amount of space to have it all on one line ? |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Thu Oct 09, 2003 4:19 am Post subject: |
|
|
| any help here? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Oct 09, 2003 4:34 am Post subject: |
|
|
| Quote: | | also, is there a way to add a 'print this page' script and an 'add to favorites' script within the menus? |
You can use "javascript:" protoctol, e.g.:
| Code: | | {code:"Print", url:"javascript:void(window.print())", ... |
| Quote: | | it seems, that the pixel definition works one way on my computer, but differently on another |
I think this happens because of some rather comples CSS definition. There were similar cases before. But most likely that your problem ocurs because of different font interpretation/substitution: your friend can have somewhat different font, or she can have different settings for ClearType (in case you are using Windows) - and line of text does not feet in 70px. There are other ways to get these separators between menu items - please send your files (and possibly a screenshot) to jssupport@cooldev.com.
| Quote: | | is it possible to have multiple submenu's open with a menu? |
Sorry, this is not clear - I just can't see what do you want to achieve. |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Thu Oct 09, 2003 5:43 am Post subject: |
|
|
what i am looking to do with the multiple submenus is this
i mouse over the main menu item, and have it open 2 seperate sub menus
i have them horizontal
so it looks like this
Main Links Tasks
when i mouse over main.. it opens menu 2, i would like it to open menu 2 and three
Main Links Tasks
mainsub1 mainsub2 mainsub3
mainsubsub1
im using the subsub menu (3) as a definition point, so when you mouseover main, it will say, main menu items.. etc.. not as an actual link |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Thu Oct 09, 2003 5:44 am Post subject: |
|
|
| i will send the files right away |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Thu Oct 09, 2003 7:01 am Post subject: |
|
|
email sent
thanks for the print help.. now if we can just get the multiple submenu's and the spacing worked out..
thanks again for the help |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Oct 09, 2003 7:11 am Post subject: |
|
|
| Answer was sent to your e-mail address. |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Thu Oct 09, 2003 9:24 am Post subject: |
|
|
you are amazing.. it works great!!
you cleaned my code up nicely! and made it alot easier to work with
only thing i still need is a "Tooltips" for the main menu items on level 1
so that level 1, will bring up sub level, and tooltips at same time? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Sat Oct 11, 2003 5:15 pm Post subject: |
|
|
| Again, answer is in your e-mailbox. |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Sat Oct 11, 2003 6:11 pm Post subject: |
|
|
got it! thanks
i have another thread out there.. last i looked it was 2 down from this one. no gaurentee it will stay there though
please respond..
again.. love the work! |
|
| Back to top |
|
 |
|
|