To add a rollover effect to your images use the code below.
<a href="IMAGE-DESTINATION-URL"><img src="IMAGE-1-LINK" onmouseover="this.src='IMAGE-2-LINK'" onmouseout="this.src='IMAGE-1-LINK'" /></a>
IMAGE-1-LINK : The original image link
IMAGE-2-LINK : The rollover image link
To get a good understand look at the example below.
CODE :
<a href="http://bloggertipandtrick.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYtPt5d5EIuYrPZXhY8T9BoGQ7gVnZSylThxuHaioq4pvaYplgvxcDqVe4RaVBw56oPeAo1gJsV3hFp-atMSJJoQsSymVNxKu590OFeaEUnTdEYC1eRLGV93wvrSU91ropR_F4xmWsvPs/" onmouseover="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKu7zH3-g-WTXl7nT7Nf6i-OOjfltQO0BSIkevh4s_vaz3wSLl17DfgTynpM8sw4bOnxKZc171LJqV2whoXgELccyujFcwFjiM4iWg7Dk7GzS-T2R77HXD3EQa8fqhX4lA7ADIvgrMeac/'" onmouseout="this.src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYtPt5d5EIuYrPZXhY8T9BoGQ7gVnZSylThxuHaioq4pvaYplgvxcDqVe4RaVBw56oPeAo1gJsV3hFp-atMSJJoQsSymVNxKu590OFeaEUnTdEYC1eRLGV93wvrSU91ropR_F4xmWsvPs/'" /></a>
RESULT :
0 comments:
Post a Comment