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='a bsolute';
document.getElementById(objMenu).style.display='bl ock';
}
Thank you 2 1213
Andre wrote: 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='a bsolute'; document.getElementById(objMenu).style.display='bl ock'; }
Thank you
Try:
document.getElementById(objMenu).style.left=900+"p x";
- JS
Ah ah... i forgot the famous "px" for Firefox... thank you !!
"jshanman" <un**********@sbcglobal.net> a écrit dans le message de news: 11**********************@z34g2000cwc.googlegroups. com... Andre wrote: 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='a bsolute'; document.getElementById(objMenu).style.display='bl ock'; }
Thank you
Try: document.getElementById(objMenu).style.left=900+"p x";
- JS This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave |
last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various
DIVs (panels), one of which is in grid layout. The controls in this DIV
render correctly in IE, but when using Firefox they...
|
by: TheCeej |
last post by:
I'm sorry to post what is ultimately a myspace problem, but I'm sure I'd still be having this problem with any html/css document, so the answer would more than likely be able to help anyone out. I'm...
|
by: nino9stars |
last post by:
Hello,
I have just started messing with absolute positioning on webpages, and
it definitely let's you do some creative things. Well, after much
searching and help, I got the images I was using...
|
by: GA |
last post by:
I have a weird CSS problem at:
In firefox, the most recent version, none of the links work: header
photo/logo is supposed to link, the buttons on the right are rollover
links. I can't even...
|
by: dontwantspam |
last post by:
Hello everyone,
I'm working on this css site redesign
http://www.maranathamalta.com/4given/testingmain.php
I've tested on my machine running XP using Firefox 2.0.0.4, IE6 and IE7.
It looks...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |