1 Reply Latest reply on Apr 19, 2010 10:15 AM by Chorale0001

    Onmouseover image not showing ?

    Chorale0001 Level 1



      This is a really noob question that i usually answer myself, but on this one i don't understand... from past project it always worked perfectly, but on this one.....




      <body OnUnload="GUnload()" OnLoad="OnLoad(), MM_preloadImages('images\button_menu\Bouton_Menu_f2.png','images\button_menu\Bouton_Menu_ f4.png','images\button_menu\Bouton_Menu_f3.png');" >



      <a href="#" onmouseover="MM_nbGroup('over','Bouton_Menu','images\button_menu\Bouton_Menu_f2.png','ima ges\button_menu\Bouton_Menu_f4.png',1);" onclick="showhide('layer1');" onmouseout="MM_nbGroup('out');"><img name="Bouton_Menu" src="images\button_menu\Bouton_Menu.png" width="60" height="60" border="0" id="Bouton_Menu" alt="" /></a>



      My mouseover image is not showing... As you see my Body contain a "onload()" related to another part of the page. I cannot seem to make it work... if i try the button alone, out of the file, it is working, but not there.


      Maybe is it in the fonction itself ?


      That one is to find the objet and preload

      function MM_findObj(n, d) { //v4.01
        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);
        if(!x && d.getElementById) x=d.getElementById(n); return x;


      function MM_preloadImages() { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
          var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
          if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

      That one is the Mouse over.


      else if (event == "over") {


          document.MM_nbOver = nbArr = new Array();


          for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {


            if (!img.MM_up) img.MM_up = img.src;


            img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);


            nbArr[nbArr.length] = img;




      Right now. all i get is a broked link. proof that the rollover is working.

      I know it is going to be an little tiny thing.... and i also know i will smash my head on the wall once we find it because i must be blind


      Thanks for the help