Don't Miss

How to Create an Image Rollover Effect

By Zohaib Liaqat - 3 Comments
The Image Rollover effect is one in which image changes on moving your mouse cursor on the image. It changes the image on moving mouse cursor on it and reverts it back to the original image on mouse out. Image Rollover is a popular effect used in many websites. Bloggers use this effect for gaining visitors attention. There is nothing technical in creating this effect, all you need is just two pictures. The onMouseOver and outMouseOut attributes are used to make it functional. Image Rollover is a simple trick that you can use for gaining attention of your visitors.
Move your Mouse Cursor on the Image below to see how it works:

How to Create an Image Rollover Effect

Here's the code for creating a Rollover Effect:

<a href="URL ADDRESS"><img src="URL OF THE FIRST IMAGE" onmouseover="this.src='URL OF THE SECOND IMAGE'" onmouseout="this.src='URL OF THE FIRST IMAGE" /></a>

Customization:

  • Replace URL ADDRESS with the URL where you want to redirect people on clicking
  • Replace both URL OF THE FIRST IMAGE with the URL of your first image
  • Replace URL OF THE SECOND IMAGE with the URL of your second image (That will appear on mouse hover)

How to Use Image Rollover Effect in Blogger Posts

Log in to your Blogger Account >> Select a Blog >> New Post and Switch to HTML tab. Now copy the above code and paste it where you want to add the image in your post. Make necessary customizations and Publish your Post.

How to Use Image Rollover Effect in Blogger Sidebar

Log in to your Blogger Account >> Select a Blog >> Layout >> Add a Gadget and select HTML/JavaScript gadget from the list. Paste that code, make necessary customization and click Save button.

We hope this article may have helped you in learning How to Create an Image Rollover Effect. Share this article with your friends and Join our Bloggers Forum on Facebook @ https://www.facebook.com/groups/blogolectforum

3 comments to ''How to Create an Image Rollover Effect"

ADD COMMENT
  1. It's in reality entirely easy to do this, so take after the means beneath to get your picture rollover impact in your own particular WordPress blog with only a smidgen of code. Make your pictures. In case you're making a float impact in which just a single piece of your picture changes, make certain to make it in Photoshop or another program.Make your pictures. In case you're making a drift impact in which just a single piece of your picture changes, make sure to make it in Photoshop or another program that will enable you to change just a single piece of the picture so the impact is extremely certain.Open another program window and transfer the two pictures into your media library in WordPress.Make or Edit your Post or Page in WordPress. Pick "Content" to alter the code straightforwardly on the page.Enter the accompanying code where you might want your picture rollover to appear.

    Learn More

    ReplyDelete
  2. I am glad that people share their experiences with us.
    Cheapest Escorts In London

    ReplyDelete
  3. Wow! This could be one particular of the most helpful blogs We have ever arrive across on this subject. Actually Great. I am also an expert in this topic so I can understand your hard work. https://royalcbd.com/product/cbd-oil-2500mg/

    ReplyDelete