Text popup over any word/item/hyperlink

J

jodleren

Hi all

I looked around, and can only find items for poping up images.
I want to have a text over a link, the when the mouse is over a link
(and later any text). Link the "alt" over a image (which btw does not
appear in Firefox)

WBR
Sonnich
 
J

jodleren

Hi all

I looked around, and can only find items for poping up images.
I want to have a text over a link, the when the mouse is over a link
(and later any text). Link the "alt" over a image (which btw does not
appear in Firefox)

WBRSonnich

I found a script by Thomas Brattli, which needed some heavy update,
but it works.

It would probably be too lonk to add here :) My test in total is 119
lines.

WBR
Sonnich
 
L

lcplben

Hi all

I looked around, and can only find items for poping up images.
I want to have a text over a link, the when the mouse is over a link
(and later any text). Link the "alt" over a image (which btw does not
appear in Firefox)

WBR
Sonnich

Have you tried to give the link element a title? As in:

<a href="http://www.nowhere.com" title="link to nowhere">nowhere!</
a>

That usually works for me.

Do the same for images, of course preserving the "alt", and Firefox
will show that title.

HTH

-- ben
 
L

lcplben

Hi all

I looked around, and can only find items for poping up images.
I want to have a text over a link, the when the mouse is over a link
(and later any text). Link the "alt" over a image (which btw does not
appear in Firefox)

WBR
Sonnich

Have you tried to give the link element a title? As in:

<a href="http://www.nowhere.com" title="link to nowhere">nowhere!</a>

That usually works for me.

Do the same for images, of course also preserving the "alt", and
Firefox
will show that title.

HTH

-- ben
 
S

SAM

Le 11/18/09 7:09 PM, jodleren a écrit :
empty the alt attribute or use it for what it is
and use instead the attribute title

<a href="p1.htm"><img src="1.jpg"
I found a script by Thomas Brattli, which needed some heavy update,
but it works.

A very simple example (whithout JavaScript !) :

<style type="text/css">
..bull_info { text-decoration: none; position: relative }
..bull_info span { position: absolute; top:.1em; left:2em;
color: blue; background: #ffc; padding: 5px; border: 1px solid;
display: none }
..bull_info:hover span { display: block; z-index: +1; }
</style>

<a href="#" class="bull_info"><img src="1.jpg" alt=""><span>Some
info said:
It would probably be too lonk to add here :) My test in total is 119
lines.

Ask google about "tool tip"

see :
<http://www.walterzorn.com/tooltip/tooltip_e.htm>
 
B

Bart Van der Donck

jodleren said:
I looked around, and can only find items for poping up images.
I want to have a text over a link, the when the mouse is over a link
(and later any text). Link the "alt" over a image (which btw does not
appear in Firefox)

"Don't seek answers, seek better questions"
(Jan Hautekiet)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top