By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,315 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,315 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.