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

Modify Tooltip Styles

P: n/a
Is there any way to modify the tooltip that shows up when using alt or title
in <img> or <a> tags? I don't like the stock tooltip, the boring yellow box.
I would like to make it a little more friendly. But I'm thinking that this
is part of the browser's hardcoded information. Am I wrong?
Jul 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Michael wrote:
Is there any way to modify the tooltip that shows up when using alt or
title in <img> or <a> tags?
Short answer: No
Long answer: Use JavaScript to remove the attribute on mouseover and display
a styled piece of HTML instead. Be _very_ careful if you decide to do this
with the alt attribute, it isn't designed to be rendered as a tooltip and
removing it onmouseover could cause problems for users of (for instance)
screen readers.
I don't like the stock tooltip, the boring
yellow box.
Yellow? Its off-white! (Actually, it is a system preference, configure your
system to display tooltips differently if you want).
I would like to make it a little more friendly. But I'm
thinking that this is part of the browser's hardcoded information. Am I
wrong?


Depends on the browser. IE/win32 for example takes it from the Windows
system settings.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #2

P: n/a
Michael wrote on 11 mei 2004 in
comp.infosystems.www.authoring.stylesheets:
Is there any way to modify the tooltip that shows up when using alt or
title in <img> or <a> tags? I don't like the stock tooltip, the boring
yellow box. I would like to make it a little more friendly. But I'm
thinking that this is part of the browser's hardcoded information. Am
I wrong?


<http://www.bosrup.com/web/overlib/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3

P: n/a
Thank you both for your responses. And thank you Evertjan for the link. That
is a cool idea, exactly what I was looking for. I'll try that out.

Michael

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Michael wrote on 11 mei 2004 in
comp.infosystems.www.authoring.stylesheets:
Is there any way to modify the tooltip that shows up when using alt or
title in <img> or <a> tags? I don't like the stock tooltip, the boring
yellow box. I would like to make it a little more friendly. But I'm
thinking that this is part of the browser's hardcoded information. Am
I wrong?


<http://www.bosrup.com/web/overlib/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 20 '05 #4

P: n/a
Evertjan. wrote:
Michael wrote on 11 mei 2004 in
comp.infosystems.www.authoring.stylesheets:
Is there any way to modify the tooltip that shows up when using alt or
title in <img> or <a> tags? I don't like the stock tooltip, the boring
yellow box.


<http://www.bosrup.com/web/overlib/>


Ugh, overlib

This thing is horrible from a usability standpoint.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #5

P: n/a
kchayka wrote:
Evertjan. wrote:

Michael wrote on 11 mei 2004 in
comp.infosystems.www.authoring.stylesheets:
Is there any way to modify the tooltip that shows up when using alt or
title in <img> or <a> tags? I don't like the stock tooltip, the boring
yellow box.


<http://www.bosrup.com/web/overlib/>

Ugh, overlib

This thing is horrible from a usability standpoint.

What about www.klproductions.com/kltooltips.html
--
Vladdy
http://www.klproductions.com
Jul 20 '05 #6

P: n/a
"Vladdy" <vl**@klproductions.com> wrote in message
news:Qw******************@nwrdny02.gnilink.net...
kchayka wrote:
Evertjan. wrote:

Michael wrote on 11 mei 2004 in
comp.infosystems.www.authoring.stylesheets:

Is there any way to modify the tooltip that shows up when using alt or
title in <img> or <a> tags? I don't like the stock tooltip, the boring
yellow box.

<http://www.bosrup.com/web/overlib/>

Ugh, overlib

This thing is horrible from a usability standpoint.
I see what you mean, now. I've been testing it out, and being that I'm not a
javascript expert, it's not as easy as I read it to be.

What about www.klproductions.com/kltooltips.html


$65 for a single license? Are you out your mind?


--
Vladdy
http://www.klproductions.com

Jul 20 '05 #7

P: n/a
Michael wrote:
"Vladdy" <vl**@klproductions.com> wrote in message
news:Qw******************@nwrdny02.gnilink.net...
kchayka wrote:

Evertjan. wrote:

Michael wrote on 11 mei 2004 in
comp.infosystems.www.authoring.stylesheets:
>Is there any way to modify the tooltip that shows up when using alt or
>title in <img> or <a> tags? I don't like the stock tooltip, the boring
>yellow box.

<http://www.bosrup.com/web/overlib/>
Ugh, overlib

This thing is horrible from a usability standpoint.

I see what you mean, now. I've been testing it out, and being that I'm not a
javascript expert, it's not as easy as I read it to be.

What about www.klproductions.com/kltooltips.html

$65 for a single license? Are you out your mind?


You are welcome to go ahead with overlib and spend couple of days
polluting your code with "onmouseovers" and "onmouseout"s, but I guess
your time is of little value... *rolleyes*

--
Vladdy
http://www.klproductions.com
Jul 20 '05 #8

P: n/a
Vladdy wrote on 12 mei 2004 in comp.infosystems.www.authoring.stylesheets:
You are welcome to go ahead with overlib and spend couple of days
polluting your code with "onmouseovers" and "onmouseout"s, but I guess
your time is of little value... *rolleyes*


I use overlib for years now.

With little serverside [asp] coding your precious time can be drasticly
reduced:

<a
<%=overlib("This is an overlib tooltip,<br>for sure!")%>
href="..">
go there</a>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #9

P: n/a
On Wed, 12 May 2004, Evertjan. wrote:
With little serverside [asp] coding your precious time can be drasticly
reduced:


What are the consequences for the cacheability of your served pages?
Jul 20 '05 #10

P: n/a
Alan J. Flavell wrote on 12 mei 2004 in
comp.infosystems.www.authoring.stylesheets:
On Wed, 12 May 2004, Evertjan. wrote:
With little serverside [asp] coding your precious time can be drasticly
reduced:


What are the consequences for the cacheability of your served pages?


they are fine, that is none.

... eh, what the heck do yo mean?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #11

P: n/a
/Vladdy/:
You are welcome to go ahead with overlib and spend couple of days
polluting your code with "onmouseovers" and "onmouseout"s, but I guess
your time is of little value... *rolleyes*


One could assign just classes to the link elements and an
initialization script excuted 'onload' the document to scan and
assign the necessary event handlers.

Of course one would "loose" all those fancy "HTML and caption
content features" because all the content needed would be get from
the 'title' attributes (no other standard one to use), but if one
wants such features they probably would be for a limited amount of
link elements where one could afford to put the extra event handlers
markup.

--
Stanimir
Jul 20 '05 #12

P: n/a
Vladdy wrote:
kchayka wrote:
Evertjan. wrote:

<http://www.bosrup.com/web/overlib/>


Ugh, overlib

This thing is horrible from a usability standpoint.

What about www.klproductions.com/kltooltips.html


I haven't seen this used anywhere except in their own demo, so I can
only go by their examples. For simple Title tooltips, it appears to
degrade well when JS is disabled. However, it depends on JS for showing
"blocks of HTML", as in the last example before their pricing info. In
that example, it encourages creating an inaccessible, unintuitive
navigation mechanism. That is not so good.

BTW, I have seen overlib many times, and I curse it pretty much every
time I see it. It's another reason to browse with JS disabled. :)

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.