PDA

View Full Version : Popup menus: "location"=open a child window


hfpillette
12-18-2002, 11:58 PM
Thanks in advance if you can help me out here. (please note also: if you know of any easier ways to do this i.e. some software I could buy that'll automatically do what I need to do that would be awesome. I'm open to all sugestions.)

I created the following pop up menu in Fireworks 4 and imported it into Dreamweaver. (Mouse over the image)
http://hfpillette.com/javascript/econ_butt_test.html

To get the menu to move *with* the triggering image in a table that scales relative to the width of the browser window (as opposed to having it stuck in an absolute position), I used Timothy Atwood's script (http://www.holtenwood.bc.ca/test/popup.htm) which seems to work fine in some browsers but not others. I'm wondering if DHTML isn't a better solution?
But I don't know DHTML either :(

If you go to Capital Spending: "All" the fireworks script works fine but for the rest of the submenu items I want each one to open up a child window (the name of the window is the same for all).

Thanks to ACJavascript's help, just wanted to include the following:
Here's the fw_menu.js file:
http://www.hfpillette.com/javascript/fw_menu.js

Any suggestions? Some simple script to replace "location"?
thanks,
Hilary

ACJavascript
12-19-2002, 12:41 AM
well i couldn't see the script so i can't really tell why it isn't working just right, but a suggestion for the opening a new window.

your code was var garph_somthing = window.open ect...

just have window.open don't place it in a var like that.

Not sure if it will do anything but give it a shot.. :D


Hope it helps :D

hfpillette
12-19-2002, 12:55 AM
Originally posted by ACJavascript
well i couldn't see the script so i can't really tell why it isn't working just right, but a suggestion for the opening a new window.

your code was var garph_somthing = window.open ect...

just have window.open don't place it in a var like that.

Not sure if it will do anything but give it a shot.. :D


Hope it helps :D

Thanks so much for your help!! I'll try...

ACJavascript
12-19-2002, 06:56 PM
i got your email,, didn't really see anything out of the ordinary in that sense...... How did the window.open thing work ?