Skip to main content

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:


Popular posts from this blog

How to Create Calculator in JavaScript

JavaScript is vast programming language through which you can create any web application. JavaScript use in every single element on web application. Means that use of java script in web programming is necessary. Using JavaScript you make online calculator, online currency converter or anything which you want you can build in JavaScript which works online and offline on your web page. As you know calculator is a basic necessary element in our life. For example if you want to find the percentage of your income then you'll need to use calculator for calculation. In this tutorial i am gonna show you that how to create calculator in JavaScript. You can also stylize this calculator source code by using CSS style sheet according to your requirements. Calculator in JavaScript Calculator JavaScript Code <h2>Calculator in Javascript</h2> <br/> <form Name="calculator"> <table border=2> <tr> <td colspan=4><input type=text

Get Free Complete CMS in PHP OOP

Before going to share complete CMS in PHP OOP I want to show you that what is CMS? CMS means Content Management System. CMS is web application or program which is used to manage or create content. In this blog post I am going to share complete CMS in PHP OOP with source code which is easily downloadable and executable. The source code is a backlink free code. You can use this code for any CMS Project. In CMS there are two units, first is front end WEBSITE for users and second is back end which is Admin Panel. Admin Panel is a gateway for administrator from which administrator can login to and made changes according to its requirements. How to execute PHP OOP CMS? For that purpose you have need to install XAMPP or WAMP on your system. You can download these software from official websites the links are given    XAMPP  or WAMP .  After installation, download CMS source code file and paste in HTDOCS folder which is located in xamp/wamp installation folder. After that open yo

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 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. Step 3: Copy this code and past