473,467 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Firefox Positioning

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
Apr 20 '06 #1
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

Apr 20 '06 #2
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

Apr 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
4
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...
2
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...
8
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...
6
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...
1
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...
0
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...
0
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...
0
jinu1996
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...
1
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...
0
tracyyun
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...
0
agi2029
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,...
0
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...
0
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 ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.