Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 3rd, 2007, 04:15 PM
Eric Layman
Guest
 
Posts: n/a
Default 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

  #2  
Old March 3rd, 2007, 04:35 PM
Jonathan N. Little
Guest
 
Posts: n/a
Default Re: Mouse over table cell --> A "alt" like style tab appears

Eric Layman wrote:
Quote:
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">


Quote:
>
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
  #3  
Old March 3rd, 2007, 04:45 PM
VK
Guest
 
Posts: n/a
Default Re: Mouse over table cell --> A "alt" like style tab appears

On Mar 4, 12:12 pm, "Eric Layman" <namyalcire[at no spam]gmail.com>
wrote:
Quote:
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.

  #4  
Old March 4th, 2007, 05:15 PM
Toby A Inkster
Guest
 
Posts: n/a
Default Re: Mouse over table cell --> A "alt" like style tab appears

Eric Layman wrote:
Quote:
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!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.