简体   繁体   中英

How to make picture bigger when i move the mouse on her?

in my asp.net webform i have image that hold picture

how to make this picture bigger when i move the mouse on her ?

What have you tried so far?

Here's some pseudocode JavaScriptish:
`onMouseOver = "img.width = new_x; img.height = new_y;" onMouseOut = "img.width = original_x; img.height = original_y;"

Note that this will only scale the picture, resulting in poor quality depending on how much you "make it bigger".

You can't make the picture bigger with same picture quality. Normally in web application to show up in page you have to use a Thumbnail image and in the hover you have to use a bigger image loaded in DIV or something.

Pop up image on mouse hover

Have a look at Lightbox which give you a popup with you full image when clicking a thumbnail.

You could always trigger the event that show the picture on mouseover tough I wouldn't recommend it.

http://www.huddletogether.com/projects/lightbox2/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM