Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Text popup over any word/item/hyperlink

Reply
Thread Tools

Text popup over any word/item/hyperlink

 
 
jodleren
Guest
Posts: n/a
 
      11-18-2009
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
 
Reply With Quote
 
 
 
 
jodleren
Guest
Posts: n/a
 
      11-18-2009
On Nov 18, 6:13*pm, jodleren <(E-Mail Removed)> wrote:
> 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
 
Reply With Quote
 
 
 
 
lcplben
Guest
Posts: n/a
 
      11-18-2009
On Nov 18, 11:13*am, jodleren <(E-Mail Removed)> wrote:
> 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

 
Reply With Quote
 
lcplben
Guest
Posts: n/a
 
      11-18-2009
On Nov 18, 11:13*am, jodleren <(E-Mail Removed)> wrote:
> 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
 
Reply With Quote
 
SAM
Guest
Posts: n/a
 
      11-20-2009
Le 11/18/09 7:09 PM, jodleren a écrit :
> On Nov 18, 6:13 pm, jodleren <(E-Mail Removed)> wrote:
>> 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)


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"
alt="menu 1" title="Go to page #1"></a>


> 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</span></a>

> 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>

--
sm
 
Reply With Quote
 
Bart Van der Donck
Guest
Posts: n/a
 
      11-22-2009
jodleren wrote:

> 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)

--
Bart
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VOIP over VPN over TCP over WAP over 3G Theo Markettos UK VOIP 2 02-14-2008 03:27 PM
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
mouse rollover text shows popup text box Informedone Javascript 1 10-05-2006 09:31 PM
Popup Window Popup Timing =?Utf-8?B?Sm9obiBXYWxrZXI=?= ASP .Net 3 11-04-2005 07:33 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM



Advertisments