Results 1 to 1 of 1

Thread: PopDown Menu Not Working In Firefox

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PopDown Menu Not Working In Firefox

    The "Services" button on this navigation menu has a dropdown menu for various services. The code works fine for IE, but not on Firefox. Firefox will change the images on the mouseover, but will not display the dropdown menu. The inc_menu.htm is the navigation menu and it calls inc_javascript.htm. The link that is failing is the call to popdown:

    [CODE] <a href="#" onMouseOut="popDown('elMenu1'); MM_swapImgRestore()"; onMouseOver="popUp('elMenu1',event);

    http://www.portfoliohairanddayspa.com/inc_menu.htm

    Here is the javascript code being called:

    [CODE]
    <!-- hide
    function MM_findObj(n, d) { //v3.0
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    // -->
    <!-- hide
    NS4 = (document.layers);
    IE4 = (document.all);
    ver4 = (NS4 || IE4);
    IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
    isMac = (navigator.appVersion.indexOf("Mac") != -1);
    isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
    function popUp(){return};
    function popDown(){return};
    if (!ver4) event=null;

    if (isMenu) {
    fntCol = "#ffffff";
    fntBold = false;
    fntItal = false;
    backCol = "#666666";
    overCol = "#f19b44";
    overFnt = "#ffffff";
    fntSiz = 7;
    fntFam = "verdana";
    menuWidth = 115;
    borWid = 1;
    borCol = "#ffffff";
    borSty = "solid";
    itemPad = 4;
    separator = 1;
    separatorCol = "#ffffff";
    imgSrc = "dropmenu/arr_menu_rt.gif";
    imgSiz = 13;
    childOffset = 2;
    childOverlap = 6;
    perCentOver = null;
    secondsVisible = .5;
    isFrames = false;
    }
    // -->
    <!--
    arMenu1 = new Array("",116,115,"","","","", "", "",
    "Hair Services","hair.htm",0,
    "Waxing","waxing.htm",0,
    "Nail Services","nail.htm",0,
    "Make-up Services","makeup.htm",0,
    "Body Treatments","body.htm",0,
    "Facials","facials.htm",0,
    "Massage Therapy","massage.htm",0,
    "Day Spa Packages","packages.htm",0,
    "Bridal Services","bridal.htm",0,
    "Corporate Advantage","corporate.htm",0
    )
    if (isMenu) {
    document.write("<SCR"+"IPT LANGUAGE='JavaScript1.2' SRC='dropmenu/Menus.js'><\/SCR"+"IPT>");
    }
    //-->
    Last edited by SandP41; 04-13-2009 at 12:41 AM. Reason: Adding javascript code

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •