How to Create A Rollover Image Effect (Change image on MouseOver)


Image Rollover function or Effect is a function through which you can easily create an effect when mouse over an Image Web Object then this image changes or swaps to other image Web Object. When mouse out then original image came back. This effect is called Image Rollover Effect. Actually, this function is created by onMouseOver and onMouseOut attributes. By using this function you can make awesome webpages.

Demo: When Mouse Cursor goes over this Twitter Bird image then it will change to other small Twitter Bird image.


Creating Rollover Image Effect: 


Copy this code and paste in that post where you want to create a Rollover image effect:

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

Change the colored text with instructions given below:


1: TARGET URL ADDRESS
Here you need to write the URL Link where somebody goes after click on that image.
For example i want to send visitor to my Twitter account then i will enter my account Twitter Profile URL            www.twitter.com/AoABlogger


2: URL OF FIRST IMAGE
Replace this yellow colored text with the URL Link of the image that will appear in normal mode or when mouse cursor out.


3: URL OF SECOND IMAGE 
Replace this Blue colored text with URL Link of that image which will appear when mouse cursor goes over the image or mouse over the image .

That's it! You can create Rollover effect in every post by using this simple method.

Video Tutorial:


How to Show Blogger Images only in Homepage and Hide from Post Page


Do you want to know how to add a custom posts thumbnail in blogger or how to hide a specific picture/image from blogger posts and make them visible on your blogger homage as Thumbnails. On other platforms like WordPress while creating a post there is an option to choose a specific picture/image to show as thumbnail on your blog homepage for that post. This feature makes a first look to reader or blog visitor about every post and make our homepage user-friendly. If you are blogger and annoying to create this specific thumbnail for every single post. We can easily make this function and hide pictures for thumbnail from our post and make them visible to homepage. For this purpose you have to follow the tutorial.

Step 1: Go to Blogger Dashboard  >>  Template >> Edit Html

show blogger images only in homepage and remove from post page


Step 2: Click anywhere in Html Editor and press CTRL+F from your keyboard then a Search Box will be appear in top right corner of Html Editor.

show blogger images only in homepage and remove from post page


Step 3: Copy this code and paste in Search Box then hit ENTER
]]></b:skin>
Step 4: Copy given below CSS code and paste it immediately below this    ]]></b:skin>


<b:if cond='data:blog.pageType != &quot;index&quot;'>
<style>
.hideimage{
display: none;
}
</style>
</b:if>


And Save the Template

Step 5:  Every time while you will create a new post then add your image/picture first and then turn editor to Html

show images on homepage and hide on post page


Then locate the code for that image which will look like that

Note: this html code for your image can be located anywhere according where you have uploaded that image in post’s Start, Middle or End

Step 6: Replace the code highlighted below in caption with code “hideimage”

show images on homepage and hide on post page


Now that’s all specific thumbnail for a blog post option have created on your blog you have to repeat for every new single post.

For any help or assistance please comment below or go to Contact and submit me your problem or question.


Video Tutorial:


Other useful Posts:

                            How to Remove Powered by Blogger Attribution  
                            How to Remove Quick Edit and Wrench Icons in Blogger