Image

Imagespeedy_ wrote in Imagejavascript 🤔curious

Listens: Maximo park - all over the shop

Make a rolldown menu follow the window

Hi there,


I have a javascript rolldown menu made by Fireworks, it works fine. But I need to make the rolldown follow the menu if the window is resized (or if the user is using a 800 X 600 screen resolution)

You can view it here:

http://www.gocommunications.ca/gagnon/index.htm



<script language="JavaScript">
<!--
function fwLoadMenus() {
if (window.fw_menu_0) return;
window.fw_menu_0 = new Menu("root",105,17,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#666666","#cccccc");
fw_menu_0.addMenuItem("Massotherapie","window.open('massotherapie.htm', '_self');");
fw_menu_0.addMenuItem("Acuponcture","window.open('acupuncture.htm', '_self');");
fw_menu_0.addMenuItem("Chiropratique","window.open('chiropratique.htm', '_self');");
fw_menu_2.addMenuItem("Pressothérapie","window.open('pressotherapie.htm', '_self');");
fw_menu_0.bgImageUp="images/fwmenu6_105x17_up.gif";
fw_menu_0.bgImageOver="images/fwmenu6_105x17_over.gif";
fw_menu_0.hideOnMouseOut=true;
window.fw_menu_1 = new Menu("root",70,17,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#666666","#cccccc");
fw_menu_1.addMenuItem("Cours","window.open('stephane.htm', '_self');");
fw_menu_1.addMenuItem("Horaires","window.open('stephane.htm', '_self');");
fw_menu_1.bgImageUp="images/fwmenu5_70x17_up.gif";
fw_menu_1.bgImageOver="images/fwmenu5_70x17_over.gif";
fw_menu_1.hideOnMouseOut=true;
window.fw_menu_2 = new Menu("root",110,17,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#666666","#cccccc");
fw_menu_2.addMenuItem("Facial","window.open('faciale.htm', '_self');");
fw_menu_2.addMenuItem("Enveloppement","window.open('enveloppement.htm', '_self');");
fw_menu_2.addMenuItem("Manucure","window.open('stephane.htm', '_self');");
fw_menu_2.addMenuItem("P&eacute;dicure","window.open('pedicure.htm', '_self');");
fw_menu_2.addMenuItem("Pose d'ongles","window.open('pose_ongles.htm', '_self');");
fw_menu_2.addMenuItem("Maquillage","window.open('stephane.htm', '_self');");
fw_menu_2.addMenuItem("Epilation cire","window.open('epilation_cire.htm', '_self');");
fw_menu_2.bgImageUp="images/fwmenu4_110x17_up.gif";
fw_menu_2.bgImageOver="images/fwmenu4_110x17_over.gif";
fw_menu_2.hideOnMouseOut=true;
window.fw_menu_3 = new Menu("root",85,17,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#666666","#cccccc");
fw_menu_3.addMenuItem("Coiffure","window.open('coiffure.htm', '_self');");
fw_menu_3.addMenuItem("Extensions","window.open('extensions.htm', '_self');");
fw_menu_3.addMenuItem("Coloration","window.open('stephane.htm', '_self');");
fw_menu_3.addMenuItem("Permanent","window.open('stephane.htm', '_self');");
fw_menu_3.bgImageUp="images/fwmenu3_85x17_up.gif";
fw_menu_3.bgImageOver="images/fwmenu3_85x17_over.gif";
fw_menu_3.hideOnMouseOut=true;
window.fw_menu_4 = new Menu("root",80,17,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#666666","#cccccc");
fw_menu_4.addMenuItem("Spray Tan","window.open('spray_tan.htm', '_self');");
fw_menu_4.bgImageUp="images/fwmenu2_80x17_up.gif";
fw_menu_4.bgImageOver="images/fwmenu2_80x17_over.gif";
fw_menu_4.hideOnMouseOut=true;
window.fw_menu_5 = new Menu("root",109,17,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#666666","#cccccc");
fw_menu_5.addMenuItem("&Eacute;pilation Laser ","window.open('epilation_laser.htm', '_self');");
fw_menu_5.bgImageUp="images/fwmenu1_109x17_up.gif";
fw_menu_5.bgImageOver="images/fwmenu1_109x17_over.gif";
fw_menu_5.hideOnMouseOut=true;
fw_menu_5.writeMenus();
} // fwLoadMenus()