TheSaviour
Programmer
I am having a lot of trouble with a Fireworks 4 created popup menu which is activated in an OnMouseOver event with the following code:
window.FW_showMenu(window.fw_menu_1,392,130);
Which as you can see includes the coordinates to popup, but the trouble is that as the screen resolution changes these coordinates become inaccurate. What I need is a javascript function that I can enter the right coordinates for each of the four menu functions (window.fw_menu_1, fw_menu_2 etc) so that in my OnMouseOver event I can just call this function with the appropriate menu number (the coordinates for that res would be in the function). I have attempted this so far with a series of if... loops but someone with more experience in javascript must know a better way. Any help appreciated.
Thanks
TheSaviour
window.FW_showMenu(window.fw_menu_1,392,130);
Which as you can see includes the coordinates to popup, but the trouble is that as the screen resolution changes these coordinates become inaccurate. What I need is a javascript function that I can enter the right coordinates for each of the four menu functions (window.fw_menu_1, fw_menu_2 etc) so that in my OnMouseOver event I can just call this function with the appropriate menu number (the coordinates for that res would be in the function). I have attempted this so far with a series of if... loops but someone with more experience in javascript must know a better way. Any help appreciated.
Thanks
TheSaviour