Link to home
Start Free TrialLog in
Avatar of jpipitone
jpipitone

asked on

Milonic DHTML Website Navigation Menu target

I'm using the Milonic menu - an older version.  I need these links to open in a new window (target=_blank)

How can I modify this code?  I've tried to add target="blank" however it's not working....

addmenu(menu=[
"productsmenu",                   // Menu Name - This is needed in order for this menu to be called
77,                          // Menu Top - The Top position of this menu in pixels
0,                          // Menu Left - The Left position of this menu in pixels
137,                          // Menu Width - Menus width in pixels
1,                            // Menu Border Width
,                             // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
EasySampleStyle,              // Properties Array - this array is declared higher up as you can see above
0,                            // Always Visible - allows this menu item to be visible at all time (1=on or 0=off)
,                             // Alignment - sets this menu elements text alignment, values valid here are: left, right or center
"Fade(duration=0.2)",         // Filter - Text variable for setting transitional effects on menu activation - see above for more info
0,                            // Follow Scrolling Top Position - Tells this menu to follow the user down the screen on scroll placing the menu at the value specified.
0,                            // Horizontal Menu - Tells this menu to display horizontaly instead of top to bottom style (1=on or 0=off)
0,                            // Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on or 0=off)
,                             // Position of TOP sub image left:center:right
,                             // Set the Overall Width of Horizontal Menu to specified width or 100% and height to a specified amount
0,                            // Right To Left - Used in Hebrew for example. (1=on or 0=off)
0,                            // Open the Menus OnClick - leave blank for OnMouseover (1=on or 0=off)
,                             // ID of the div you want to hide on MouseOver (useful for hiding form elements)
,                             // Background image for menu Color must be set to transparent for this to work
0,                            // Scrollable Menu
,                             // Miscellaneous Menu Properties
//Products menu
,"Storage","http://www.1stdesign.com",,,1 //this needs to open a new target
,"Pro HD Flex","products/prohdflex.asp?search=prohdflex",,,1
,"High Definition","show-menu=hdmenu","products/high_def.asp?search=solutionsoverview",,1
,"Desktops","products/desktops.asp?search=desktops",,,1
,"Laptops","products/laptops.asp?search=laptops",,,1
,"Mobiles","products/mobiles.asp?search=mobiles",,,1
,"HDV-MPeg2","products/hdmpeg2.asp?search=hdmpeg2",,,1
,"Software/Cards","show-menu=SubMenu4","products/software_cards.asp?search=software_cards",,1
,"Graphics & Effects","products/graphics_effects.asp?search=software_cards",,,1
,"System Add-Ons","products/system_addons.asp?search=system_addons",,,1
,"Camera/Decks","show-menu=camdeckmenu","products/cameras_decks.asp?search=cameras",,1
,"CD/DVD Duplicators","products/cddvd_duplication.asp?search=cddvd_duplicators",,,1
,"Clearance Items","products/clearance_items.asp?search=clearance",,,1
,"Lease Information","company/leaseinfo.asp?search=leaseinfo",,,

])
Avatar of mrichmon
mrichmon

I don't think you can.  This code contains the info to put in the href = you need to modify how the href is generated - so it would not be this code, but other code that would need to be modified.
Avatar of jpipitone

ASKER

Actually it worked when I put the target=_blank immediately after the link href.

You can see it working here:

http://www.1beyond.com - hover over Products and click Storage.
No objections, but it is strange that you first say you tried that and it did not work and then that was the solution...
When I first said that it didn't work, it was the double quotes that were throwing it off.  When I removed them, it worked.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial