Background-color of tool tip

N

Nik Coughin

Tami said:
Hello there,

Can you change the background-color of tool tip?
When yes, how?

One way that you might be able to do it... bit of a kludge though.

Disable tooltips with JavaScript (not sure how you would go about this, but
it's probably possible).

Make your own JS tooltips (there is lots of code around for this) with a
coloured background.

If they don't have JS enabled, they get the standard tooltip.

If they do have JS, the standard tooltip is disabled/hidden and they get
yours instead.
 
T

Toby Inkster

Nik said:
Disable tooltips with JavaScript (not sure how you would go about this, but
it's probably possible).

onmouseover="x=this.title;this.title='';"
onmouseout="this.title=x;"
 
S

SpaceGirl

Toby said:
Nik Coughin wrote:




onmouseover="x=this.title;this.title='';"
onmouseout="this.title=x;"

Hmmm I like that. It work for two reasons; users without JS wouldnt get
an error, and it wouldn't mess up accessibility.

But still seems a daft thing to do.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 

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,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top