PDA

View Full Version : change text when you put cursor over images


sadistic one
01-11-2005, 02:52 AM
i have recently started a blog that allows me to edit code and thus get up to all kind of mischief.

i have created a banner-esque thing across the top of the page that entirely consists of images, which acts as my menu, with links to all the different parts of my blog. i have recently however, noticed that their fairly abstract designs wont make much sense to anyone who is not inside the head of the person who designed them (me).

to aid newcomers to my blog, i want to set up a paragraph (text thing?) that changes its text as you put your mouse over the different pictures. isnt that a good idea?

anyway, i have no idea how to do this, and no real coding skills, so could one of you geniuses out there please take me through step by step?

_Aerospace_Eng_
01-11-2005, 02:54 AM
did u want to do it with actual text or images?

cfc
01-11-2005, 02:58 AM
I assume you're trying to create tool tips for your buttons. To do this, add a title="" attribute containing the text you want either in your <a> or <img> tags.

_Aerospace_Eng_
01-11-2005, 03:09 AM
the title attribute doesn't work too well in FF

sadistic one
01-11-2005, 03:13 AM
i'm thinking more along the lines of, when you've got your cursor over the image, a text box or text somewhere else on the page changes, not just the usual box that pops up after leaving your mouse over something for a while

chilipie
01-11-2005, 07:00 AM
You'll have to do that with JS then. CSS doesn't have those capabilities (to the best of my knowledge), and even if it does, I doubt they'd be widely implemented.

Ask a mod to move this topic; do NOT double post.

rmedek
01-11-2005, 07:53 AM
Not so fast...

http://www.meyerweb.com/eric/css/edge/popups/demo.html

A goodie I read some time ago and have been waiting to try for awhile. Hope it helps,

chilipie
01-11-2005, 03:39 PM
Well that ends my theory that "everything you can't do with CSS you can probably do with JS" :D .