Free AdviceGet Free Advice
Home | Get advice | Give advice | Topics | Columnists | - !START HERE! -
Make Suggestions | Sitemap

Get Advice


Search Questions

Ask A Question

Browse Advice Columnists

Search Advice Columnists

Chat Room

Give Advice

View Questions
Search Questions
Advice Topics

Login

Username:
Password:
Remember me
Register for free!
Lost Password?

Want to give Advice?

Sign Up Now
(It's FREE!)

Miscellaneous

Shirts and Stuff
Page Backgrounds
Make Suggestions
Site News
Link To Us
About Us
Terms of Service
Help/FAQ
Sitemap
Contact Us


Rollover Images


Question Posted Saturday July 12 2008, 7:20 pm

Does anyone know the code for rollover hovers that change the image?

like you see a picture, you hover on it and it changes picture, thankssss


[ Answer this question ]
Want to answer more questions in the Technology category?
Maybe give some free advice about: Internet & Web Design?


theymos answered Saturday July 12 2008, 8:10 pm:
Typically it's done like this:
<img src="original image" onmouseover="this.src='hover image url'" onmouseout="this.src='original image again'">

For example, this will start with the Advicenators logo and switch to the Google logo when hovered over:
<img src="http: //www.advicenators.com/img/hsingle.gif" onmouseover="this.src='http: //img0.gmodules.com/ig/images/logos/approved/white.png'" onmouseout="this.src='http: //www.advicenators.com/img/hsingle.gif'">
If you want to test that example, make sure you remove the spaces in the URLs. I put them there to prevent them from turning into links.

It's also possible to do this using CSS, but it's longer and there are a lot of workarounds. Search to get instructions:
only search advicenators.com


[ theymos's advice column | Ask theymos A Question
]


More Questions:

<<< Previous Question: how can you give advice..
Next Question >>> American Eskimo

Recent popular questions:
Want to give advice?

Click here to start your own advice column!

What happened here with my gamer friends?

All content on this page posted by members of advicenators.com is the responsibility those individual members. Other content © 2003-2014 advicenators.com. We do not promise accuracy, completeness, or usefulness of any advice and are not responsible for content.

Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content.
Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.

[Valid RSS] eXTReMe Tracker