Welcome to WebmasterWorld Guest from 54.160.254.203

Forum Moderators: not2easy

Message Too Old, No Replies

Question about Hover and Action for Image Links

     
9:49 am on Jan 14, 2008 (gmt 0)

New User

5+ Year Member

joined:Jan 14, 2008
posts:3
votes: 0


Now, it is about 5AM when I'm posting this, so I apologize in advance for any misspellings...

I'm currently attempting to get images for the links to change on mouse over and on action, but for the life of me can't figure out how!
Now, I believe I've done it before, but I kinda don't remember how I did it. The images are not background images, they are actual images with the words typed into them.

Any help would be appreciated, and agian sorry if this is a simple little snippet of code!

[edited by: engine at 3:29 pm (utc) on Jan. 14, 2008]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]

4:37 pm on Jan 14, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 19, 2001
posts:455
votes: 0


Only background images can be changed w/ CSS. You'll need to use Javascript.
7:22 pm on Jan 14, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 0


Welcome to WebmasterWorld, Bones6.

You may still be able to accomplish the task with CSS. "Hide" your images by either making then display:none or by making their visible space so small that they don't "appear" until you hover over the link.

2:43 pm on Jan 15, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 19, 2001
posts:455
votes: 0


Good point Coopster.. I forgot there's also the "sprite" technique:

[#*$!.com...]