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

Mouse over table cell --> A "alt" like style tab appears

Hi everyone.

An image allows alt attribute. When mouse over images with alt attribute, a
small yellow popup would appear besides the mouse cursor.

How to replicate this behaviour using a table cell instead?

Is this even possible?

Thanks.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Mar 3 '07 #1
3 8739
Eric Layman wrote:
Hi everyone.

An image allows alt attribute. When mouse over images with alt attribute, a
small yellow popup would appear besides the mouse cursor.
Well no it doesn't...it does in IE, and really old NN4! ALT is supposed
to display as text when the image resource is unavailable. For the
'Tooltip' modern browsers can (but are not obligated to) display with
the TITLE attribute.

<img src="myimage.jpg" alt="my image missing" title="The tooltip message">
>
How to replicate this behaviour using a table cell instead?
<td title="Some tooltip message">Blah...
But as I said modern browsers do display TITLE as a tooltip but are not
obligated to, so your can put auxiliary info in the TITLE attribute but
I would not put *essential* info there!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 3 '07 #2
VK
On Mar 4, 12:12 pm, "Eric Layman" <namyalcire[at no spam]gmail.com>
wrote:
An image allows alt attribute. When mouse over images with alt attribute, a
small yellow popup would appear besides the mouse cursor.

How to replicate this behaviour using a table cell instead?
By using a custom script. You may look at
<http://www.dynamicdrive.com/dynamicindex5/index.htmlmaybe you like
something. Each script has a list of browsers where it's tested to be
working.

As a note: popups with data from alt, title, href attributes differ
pretty much by different browsers (does or doesn't popup, how does
look). "small yellow popup for alt" is IE's feature AFAICT.

Mar 3 '07 #3
Eric Layman wrote:
An image allows alt attribute. When mouse over images with alt attribute, a
small yellow popup would appear besides the mouse cursor.
This is an MSIE-only "feature". The alt attribute is supposed to only be
displayed when the image cannot be displayed.

The correct attribute to use for such tooltips is title. Although title
doesn't *have* to be displayed as a tooltip, in practise, all current
mainstream browsers do -- including MSIE. (When both title and alt are
available, MSIE will show the title, not the alt!) Whatsmore, the title
attribute is available for pretty much every element -- not just images.

Examples:

<img src="/path/to/image.png"
alt="Text for when image is unavailable"
title="Tooltip text">
<a href="http://www.google.co.uk"
title="The Google Search Engine">Google</a>
<table title="Sales Figures for January 2007"
summary="Sales have increased ten-fold. Hurrah!">
<caption>Jan 2007</caption>
<!-- DATA GOES HERE -->
</table>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Mar 4 '07 #4

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

Similar topics

2
by: Chris Coho | last post by:
Is there any way to get the same affect as alt text for an image on a table cell? For instance I want if someone rolls the mouse over the cell for some instructions to pop up like they do for...
5
by: kj | last post by:
Is there a way to dynamically (e.g. upon onClick) change the bgColor attribute of a table cell? I tried cell.setAttribute("bgColor", someColor), where someColor was a string of the form "#RRGGBB",...
1
by: Kai Grossjohann | last post by:
I have a table which contains a top-aligned table cell: .... <tr style="height:40"> ... <td colspan="1" rowspan="2" align="left" valign="top" style="overflow:hidden;">...
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...
2
by: Pete Kipe | last post by:
I'm not a JavaScript programmer...but I'm trying to put together a simple menu system for a new website and need a little help. I have the following script: <SCRIPT language=javascript> <!--...
1
by: Thanks | last post by:
I have a routine that is called on Page_Init. It retrieves folder records from a database which I display as Link Buttons in a table cell. I set the table cell's bgcolor to a default color (say...
2
by: PJ6 | last post by:
For client-side behavior, I want to expand a table cell to show content underneath a cell's text on mouse over, and hide it on mouse out. I'm having problems making this work so that the cell is...
1
by: Bart Lateur | last post by:
I'm trying to put a utton at the bottom (right) of a TD cell, irrespective of what else is in there. Usually, with other HTML block elements, we're told to use position: relative on the...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.