如何编写javascript来显示鼠标悬停在其上的一个图像? [英] How to write javascript to display one image while mouse over on it?
本文介绍了如何编写javascript来显示鼠标悬停在其上的一个图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望javascript在放置鼠标的同时显示一个图像。
我的页面中有一个图像,当鼠标放在上面时,它应该显示另一个尺寸合适的图像。 />
怎么做?
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?
推荐答案
在这个链接使用图像而不是跨度
http://stackoverflow.com/questions/18783225 / display-on-mouseover [ ^ ]
另一个能给你一个确切想法的东西
http://stackoverflow.com/questions/17444912/jquery-show-hide-on-mouse-over-image [< a href =http://stackoverflow.com/questions/17444912/jquery-show-hide-on-mouse-over-imagetarget =_ blanktitle =New Window> ^ ]
如果你想使用div尝试下面一个在另一个图像上添加鼠标悬停css
http:// stackoverflow。 com / questions / 11217683 / hide-and-displays-an-image-in-mouse-over-action-in-a-div [ ^ ]
以及更多
点击此处 [ ^ ]
问候......:)
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...:)
这篇关于如何编写javascript来显示鼠标悬停在其上的一个图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文