Click to See Complete Forum and Search --> : Target in Dropdown Menu


LoneWolf367
07-26-2005, 06:55 PM
I am a total n00b to javascript and it's my first time really having to work with it at all.

Anyways, I had help from Macromedia Fireworks to create my menu at http://www.sushibarnetwork.com/aspect/v2/

On the "Us" page the movie screen is a frame and I need the corresponding Us links from the menu to load within it.

The 2 javascript files for the menu are:
http://sushibarnetwork.com/aspect/v2/dropdown/dropdown.js
http://sushibarnetwork.com/aspect/v2/dropdown/mm_menu.js

I think I need to add something to the mm_menu file to use targets for the links within the dropdown.js file.

Exuro
07-27-2005, 01:47 AM
That looks like an unnecessarily big mess. How about instead of using fireworks to make your menu, you use this:
http://www.alistapart.com/articles/dropdowns/

LoneWolf367
07-27-2005, 09:38 AM
Yeah, I thought it was a big mess to. I can do that. The question then comes up is how to load that page with the proper frame inside of it when the menu is clicked. Is there some HTML for that? Simply the target tag wont work because that'll just load that single frame if I'm any other page... I think I'll just talk to the people I'm designing the site for and see if they'll make a comprimise and throw out that dropdown. Thanks for the link.

Exuro
07-27-2005, 12:04 PM
Since you're using PHP I think you can solve this pretty simply. If you're on any page other than the "Us" page you can set all the links in the menu to pass in a query string value which would determine which page to load in the iframe. You'd then use that value to write out the src attribute value in your PHP. On the "Us" page you'd write out the links with a target attribute instead of a query string. I think that would just about do it...

LoneWolf367
07-27-2005, 12:12 PM
Ah, good call. Thanks for your help.