Click here to Skip to main content
15,879,490 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want javascript to display one image while placing mouse on it.
I have one image in my page, While placing mouse on it ,it should display another image with a good size.
how to do this?

Posted
Comments
Harshil_Raval 26-Sep-13 6:14am    
hi, what you mean by good size image? Do you want to replace image, when you hover on image control?
Am Gayathri 26-Sep-13 6:18am    
Good size in the sense it should not be small.It should be in average size that's it.

1 solution

In this link use image instead of span
http://stackoverflow.com/questions/18783225/display-image-on-mouseover[^]

Another one which give you exact idea
http://stackoverflow.com/questions/17444912/jquery-show-hide-on-mouse-over-image[^]


If you want to use div try below one add css on mouseover on another image
http://stackoverflow.com/questions/11217683/hiding-and-displaying-an-image-in-mouse-over-action-in-a-div[^]

And much more
Click here[^]
regards...:)
 
Share this answer
 
v2
Comments
Am Gayathri 26-Sep-13 6:25am    
Thanks
Dholakiya Ankit 26-Sep-13 6:36am    
Welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900