Firefox Positioning
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Firefox Positioning

From: Andre <webmaster@cablevision.qc.ca>
Date: Thu Apr 20 2006 - 17:39:19 CEST

Hi,

    I need help with something's working in one of my app, but not in
another.

    I have a MENU, and on MouseOver i display a DIV on the Page, but in
Firefox, the DIV is always at the LEFT (0px) of the page.. even with this
code, did someone have any idea ?

    The Menu
    ------------------
  <table width="600" border="0" cellspacing="0" cellpadding="0"
style="position:static;background-image: url(Menu/top_bg.jpg);">
  <tr>
      <td class="section" id="pacs" align="CENTER"
onmouseover="menu(this,'menuB');" >PACS</td>
      <td class="section" id="cinema" align="CENTER"
onmouseover="menu(this,'menuA');">CINEMA</td>
     </tr>
  </table>

<div id="menuA" style="z-index:20;display: none; background-color:
#FBBD38;">
   HELLO
</div>

<div id="menuB" style="z-index:20;display: none; background-color:
#FBBD38;">
   RE_HELLO
</div>

    Positioning
---------------------------
function menu(obj,objMenu) {
 document.getElementById(objMenu).style.left=900;
 document.getElementById(objMenu).style.position='absolute';
 document.getElementById(objMenu).style.display='block';
}

Thank you
Received on Mon May 1 05:10:55 2006