O'Reilly logo

ASP.NET jQuery Cookbook - Second Edition by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Zooming images on mouseover

Some applications require zooming or magnification of images at certain locations. In this recipe, we will zoom an image at the location where the mouse enters the image. The constructs used in this example are as follows:

Construct

Type

Description

$("#identifier")

jQuery selector

This selects an element based on its ID.

$(this)

jQuery object

This refers to the current jQuery object.

.css()

jQuery method

This gets the style property for the first matched element or sets the style property for every matched element.

height

CSS property

This is the height of the element.

left

CSS property

This is the position of the left edge of the element. For absolutely positioned elements, it indicates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required