Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:28
Help With Frames
Poster: D3vil
Dated: Monday August 5 2002 - 22:00:25 BST
I've had a number of probalems with my dropdown menu, iv'e fixed many of them but i keep gettin one error after another, if anyone can help me with this, i'll be extremely greatful, because this is driving me crazy. I need the links of my drop down menu to open in my targeted iframe named "I1" i will include my script and if anyone can decipher my problem let me know because anytime i click my links to open them, they won't open at all i just get an unknown javascript error saying "Object expected" "Code: 0"
if i shift click to open the link into a new window insted of even trying to open it in an iframe it directs the adress to this "javascript:openIFrame("I1","http://www.allwoodins.com/auto")" and i get a 404.
------------------Here's a sample of the Script------------------------
,"Home","http://www.dynamicdrive.com",,"Back to the home page",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"News ","show-menu=news",,"",1
,"OnlineQuotes ","show-menu=OnlineQuotes",,"",1
,"Office ","show-menu=Office",,"",1
,"Search ","show-menu=search",,"",1
,"Other ","show-menu=other",,"",1
)
addmenu(menu=["news",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Recent","javascript:openIFrame(\"I1\",\"http://www.allwoodins.com/recent\")",,,0
,"Archived","javascript:openIFrame(\"I1\",\"http://www.allwoodins.com/archived\")",,,0
])
addmenu(menu=["OnlineQuotes",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"<img src=newsimage.gif border=0> Auto Quote","javascript:openIFrame(\"I1\",\"http://www.allwoodins.com/auto\")",,,1
,"<img src=newsimage.gif border=0> Home Quote","javascript:openIFrame(\"I1\",\"http://www.allwoodins.com/home\")",,,1
Poster: MarkyB
Dated: Tuesday August 20 2002 - 14:47:09 BST
I hope you have already fixed your issues, but if not - I found that all menu names and target names MUST be all lowercase and have no spaces in them. The mmenu.js uses a lowercase function that can seriously disable your uppercase naming convention.