Demo: Place your mouse over the image below to see its rollover effect
Image source: mdgraphs.deviantart.com
Making Rollover Effect Image
You have the following code:
<a href="URL ADDRESS"><img src="URL OF THE FIRST IMAGE GOES HERE" onmouseover="this.src='URL OF THE SECOND IMAGE GOES HERE'" onmouseout="this.src='URL OF THE FIRST IMAGE GOES HERE'" /></a>
Change the colored texts as it follows:
1. URL ADDRESS
This is the address you want the image to lead to when it's clicked.
Example : http://www.bloggingcreate.blogspot.com
2. URL OF THE FIRST IMAGE GOES HERE
Replace the green text (two times) with image's url address - this is the image shown before you hover over it.
Example: http://i1256.photobucket.com/albums/ii494/helplogger76/helploggerblogspotcomstickie3.png
3. URL OF THE SECOND IMAGE GOES HERE
Replace the text in red with the url of your image - this image will appear when your cursor hovers over it.
Example: http://i1256.photobucket.com/albums/ii494/helplogger76/helploggerblogspotcomstickie2.png
Now you can paste your image inside a blog gadget, going to Page Elements > Add a Gadget > Select "HTML/JavaScript and add it to your sidebar Or you can add it inside your post by going to New Post > Switch to Edit HTML tab and then paste the code in the empty box. That's it.
No comments:
Post a Comment