25 users online (2 members and 23 guests)  


  Results 1 to 2 of 2

Related

  1. MP3 Compatibility Question    Forum: HTML Forum
    Replies: 2
  2. Replies: 1
  3. background-color and NetScape 7 problem    Forum: CSS Forum
    Replies: 1
  4. Problem with netscape 6.0    Forum: CSS Forum
    Replies: 1
  5. Replies: 2
  1. #1
    Sam's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    2

    Problem with netscape compatibility

    I'm trying to call a javascript function on a mouseover, but it do nothing.

    Where I call it
    Code:
    <td colspan="4" id="Cerf">
    			<a onMouseOver="CacherMenus(); showFloatMenuAt('PopupCerf',((Cerf.offsetLeft)+(Tableau.offsetLeft)-(this.offsetWidth/32)),(Cerf.offsetTop)+(Menu.offsetHeight)+(Tableau.offsetTop)+(this.offsetHeight));"><img src="images/Fond_Carte_Slice_06.jpg" alt="" width="91" height="61"></a></td>
    		<td rowspan="8">
    The functions
    Code:
    <!--Popup menu cerfs-->
    <script type="text/javascript" language="JavaScript1.2">
    <!--
    stm_bm(["PopupCerf",400,"","blank.gif",2,"","",0,0,10,0,200,1,0,0,"","",0],this);
    stm_bp("p0",[1,4,0,0,1,4,0,0,96,"",-2,"",-2,90,0,0,"#b6d0ea","#000066","",3,1,1,"#666666"]);
    stm_ai("p0i0",[0,"Enclos des cerfs","","",-1,-1,0,"Cerf.html","_self","","","","",0,0,0,"","",0,0,0,1,1,"#6699cc",0,"#71a9ff",0,"pane.gif","",3,3,0,0,"#0099cc","#000000","#ffffff","#000000","9pt Arial","9pt Arial",0,0]);
    stm_ep();
    stm_em();
    //-->
    </script>
    <!--Cacher les menus-->
    <script type="text/javascript" language="JavaScript1.2">
    function CacherMenus()
    {
    hideMenu('PopupIle');
    hideMenu('PopupCamping');
    hideMenu('PopupCerf');
    hideMenu('PopupAuberge');
    hideMenu('PopupArbre');
    hideMenu('PopupMarina');
    }
    </script>
    Anyone have an idea why?

  2. #2
    Sam's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    2
    I managed to find where the problem is

    Code:
    ((document.getElementById('Cerf').offsetLeft)+(Tableau.offsetLeft)-(this.offsetWidth/32)),(document.getElementById('Cerf').offsetTop)+(Menu.offsetHeight)+(Tableau.offsetTop)+(this.offsetHeight))
    Somewhere, in this line of code that get the positions where i want to place my popup menu, there's something that doesn't work with netscape and I don't know what.
    Anyone have an idea?



Tags for this Thread