473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

javascript code is masking popup table

ara
Hi,

I have got a table which pops up when the pointer is placed
over a link,as

<div id="metapopup" onMouseOver="showmeta();"
onMouseOut="hidemeta();">
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td><a href="#">Home </a>
<br><a href="http://www.google.com" target="_blank">Google</a>
<br><a href="http://www.yahoo.com" target="_blank">Yahoo</a>
</td>
</tr>
</table>
</div>

The anchor text is given as
<a href="#" onMouseOver="showmeta();"
onMouseOut="hidemeta();">
Home
</a>

The javascript functions showmeta() and hidemeta() are as below

function hidemeta() {
if (document.getElementById) {
document.getElementById('metapopup').style.visibil ity =
"hidden";
}
}

function showmeta() {
if (document.getElementById) {
document.getElementById('metapopup').style.visibil ity =
"visible";
}
}

I am experiencing a problem with this, as a javascript drop
down menu in the page is masking the portion of the pop up table
behind it.

Please suggest a solution

Thanks in advance
Ara

Nov 1 '06 #1
3 2274
ASM
ara a écrit :
I am experiencing a problem with this, as a javascript drop
down menu in the page is masking the portion of the pop up table
behind it.
Normal feature, the deployment of the list covers the page.
And ? what is the problem ?

If you are using the drop down list you aren't using the link, no ?
One thing at one time ...
Please suggest a solution
Use something else than a select ?
Nov 1 '06 #2
ASM
ara a écrit :
Hi,

I have got a table which pops up when the pointer is placed
over a link,as
Why a table ? (with only 1 row of 1 cel ?

<script type="text/javascript">

function showmeta() {
if (document.getElementById) {
dropList = document.getElementById('metapopup');
dropList = dropList.getElementsByTagName('table')[0];
dropList.style.visibility ="visible";
}
}
function hidemeta() {
if (document.getElementById)
dropList.style.visibility ="hidden";
}
</script>

<div id="metapopup" style="border:1px solid red"
onMouseOver="showmeta();"
onMouseOut="hidemeta();">
<table border="0" cellpadding="5" cellspacing="0"
style="visibility:hidden">
<tr>
<td><a href="#">Home </a>
<br><a href="http://www.google.com" target="_blank">Google</a>
<br><a href="http://www.yahoo.com" target="_blank">Yahoo</a>
</td>
</tr>
</table>
</div>
Nov 1 '06 #3
ara

Hi Stephane,

Thanks for your prompt response.

I solved the issue. My problem was that even though the
metapopup block works fine, the block appears to be hiding behind
another javascript dropdown menu.

Only now did I realise that this is the problem in
displaying layers properly. So i added z-index to the class metapoup in
stylesheet. Now it works fine.

Sorry for misguiding you with not so appropriate
description.

Thanks
Ara

Nov 2 '06 #4

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

Similar topics

2
by: Jeannie | last post by:
I have a popup window which is a slideshow of about 7 images. When the popup window loads, the first image is present and then the viewer can select next or previous to scroll through the rest of...
5
by: Connie Walsh | last post by:
Hi: I gleaned a javascript off of the web: http://www.hypergurl.com/popup.html that sets a cookie everytime someone visits your site. If it is the first visit in x number of days then a...
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
9
by: tshad | last post by:
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work...
2
by: ggk517 | last post by:
I have a script like below: ------------------------------------------------------------------------------------------------------------------------ <html> <head> <title>TEST</title> <script...
4
by: Rusty | last post by:
Hi, I've seen something on a web site that I want to do for our Intranet web site. I'm not advocating pop-ups but for our company app, this would be perfect. Please go to this page and hold...
4
by: E | last post by:
I am having trouble with setTimeout working on a second call to the setTimeout function from a second page which is an html page. Here is the scenario. I have a web page and onload it calls a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.