473,378 Members | 1,609 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,378 software developers and data experts.

Hover popups in table cells

In my ASP.NET web app I'm trying to create a popup DIV that displays some
text when the user hovers the mouse over a link in a particular cell in a
table. I'm using JavaScript to show & hide the popup.

I've played around but can't get the popup to work properly. Toggling
between 'visibility:hidden' & 'visibility:visible' doesn't work correctly
because the row height is incorrect and includes the height of the popup
text. Toggling between 'display:none' & 'display:block' doesn't work because
the row height gets increased when the popup is displayed.

Can someone help me out to get the popup to work properly so that the row
height is correct? It needs to work with IE6.

Aug 13 '08 #1
3 2839
This is what I use, hope it helps.

function switchVisible(objname) {
var obj = document.getElementById(objname);

if ( obj.style.display == 'none' ) {
obj.style.display = '';
} else {
obj.style.display = 'none';
}
}
In my ASP.NET web app I'm trying to create a popup DIV that displays
some text when the user hovers the mouse over a link in a particular
cell in a table. I'm using JavaScript to show & hide the popup.

I've played around but can't get the popup to work properly. Toggling
between 'visibility:hidden' & 'visibility:visible' doesn't work
correctly because the row height is incorrect and includes the height
of the popup text. Toggling between 'display:none' & 'display:block'
doesn't work because the row height gets increased when the popup is
displayed.

Can someone help me out to get the popup to work properly so that the
row height is correct? It needs to work with IE6.

Aug 13 '08 #2
This is what I've been using and it doesn't work. It will show & hide the
popup OK but it also causes the row height to get increased & decreased each
time.

"The Colorado Kid" <tckwrote in message
news:9d*************************@newsgroups.comcas t.net...
This is what I use, hope it helps.

function switchVisible(objname) {
var obj = document.getElementById(objname);
if ( obj.style.display == 'none' ) {
obj.style.display = '';
} else {
obj.style.display = 'none';
}
}
>In my ASP.NET web app I'm trying to create a popup DIV that displays
some text when the user hovers the mouse over a link in a particular
cell in a table. I'm using JavaScript to show & hide the popup.

I've played around but can't get the popup to work properly. Toggling
between 'visibility:hidden' & 'visibility:visible' doesn't work
correctly because the row height is incorrect and includes the height
of the popup text. Toggling between 'display:none' & 'display:block'
doesn't work because the row height gets increased when the popup is
displayed.

Can someone help me out to get the popup to work properly so that the
row height is correct? It needs to work with IE6.


Aug 13 '08 #3
Oh, the problem is the position setting in the style of the div itself. I've
got a custom control that does this as well. Make sure you set the position
setting of the style attribute to absolute, and it won't resize anything
else on the page.

This is what I've been using and it doesn't work. It will show & hide
the popup OK but it also causes the row height to get increased &
decreased each time.

"The Colorado Kid" <tckwrote in message
news:9d*************************@newsgroups.comcas t.net...
>This is what I use, hope it helps.

function switchVisible(objname) {
var obj = document.getElementById(objname);
if ( obj.style.display == 'none' ) {
obj.style.display = '';
} else {
obj.style.display = 'none';
}
}
>>In my ASP.NET web app I'm trying to create a popup DIV that displays
some text when the user hovers the mouse over a link in a particular
cell in a table. I'm using JavaScript to show & hide the popup.

I've played around but can't get the popup to work properly.
Toggling between 'visibility:hidden' & 'visibility:visible' doesn't
work correctly because the row height is incorrect and includes the
height of the popup text. Toggling between 'display:none' &
'display:block' doesn't work because the row height gets increased
when the popup is displayed.

Can someone help me out to get the popup to work properly so that
the row height is correct? It needs to work with IE6.

Aug 13 '08 #4

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

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
8
by: Dan | last post by:
When a user clicks on a link in my menu, I want the background color of the link that comes up in the hover to remain on the destination page. My menu looks like this: <div id="adminmenu"> <a...
6
by: Michael Rozdoba | last post by:
I've had some trouble getting IE to behave in respect of applying absolute positioning to a span on an a:hover. I can get it to work, but I don't understand why certain code causes it to fail to...
2
by: Sugapablo | last post by:
Can anyone help me out with some code to change three table cells (<td>) when one is hovered over? I have a calendar grid where each day is made up of three table cells and I want all three to...
1
by: Jon W | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> <html> <head> <title>rolly</title> <!-- The desired performance for this gem would be to: 1. click on table cells 2. edit in INPUT 3....
0
by: Jon W | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> <html> <head> <title>rolly</title> <!-- The desired performance for this gem would be to: 1. click on table cells 2. edit in INPUT 3....
7
by: fredo | last post by:
I've studied Eric Meyer's pure css popups, version two: http://meyerweb.com/eric/css/edge/popups/demo2.html which pops up an image when I roll over a text link. Now I want to pop up a large...
1
by: YotamElal | last post by:
Hello, I have a popup problem. When a popup is opened, I want all other popups to close immediatly. (except for its self and it's child popups) Here is my code: code: <!DOCTYPE HTML PUBLIC...
2
by: truezplaya | last post by:
Hey all Just breaking in to some asp.net so sorry if this is a silly question i have an asp:table with asp:tablerows and asp:table cells. When i hover over my links only the links are...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.