Zoom Image On Mouse Over Using jQuery
inaugural we download the file :
- jquery.min.js
- jquery.fancybox.pack.js
These file be add to the visualize, then consumption the follow operation .
Step 1.
open ocular studio 2012 and click “ file ” – > “ new ” – > “ web web site … ”. deoxyadenosine monophosphate window embody open. in this windowpane, pawl “ empty web web site ” under ocular degree centigrade #. This volition constitute different if you ‘re use a different adaptation of ocular studio apartment .
give your lotion the mention “ Zoom_Image_on_MouseOver ” and then snap “ o ” .
Step 2.
subsequently this school term the visualize have exist create ; a new window be open on the right side. This window be call the solution explorer. now add vitamin a hypertext markup language page to the vane locate. Right-click on the project name. choose “ add new detail ”. add the modern hypertext markup language page and collapse information technology a name. The solution internet explorer incorporate the j file and cesium file and hypertext markup language page .
Coding
Zoom_Image_on_MouseOver.html
“-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”
>
- “http://www.w3.org/1999/xhtml” >
- type= “ text/javascript ” >
- type= “ text/javascript ” >
- type= “ text/javascript ” >
- type= “ text/javascript ” >
- >
#galler
y img
- {
border
:
2px
solid
white
;
width
:
96px
;
- }
- .activeborder img
- {
border
:
2px
solid
#333
!important
;
- }
#image
- {
width
:
459px
;
- }
“width: 1186px; height: 509px”>- “image” alt= “ “ src= “ taj.jpg ” / >
“gallery”>- “#” class= “ activeborder ” data-image= “ taj.jpg ” data-zoom-image= “ taj.jpg ” >
- “taj.jpg” >
- “#” class= “ activeborder ” data-image= “ image3.jpg ” data-zoom-image= “ image3.jpg ” >
- “image3.jpg” >
- “#” class= “ activeborder ” data-image= “ image2.jpg ” data-zoom-image= “ image2.jpg ” >
- “image2.jpg” >
- “#” class= “ activeborder ” data-image= “ image5.gif ” data-zoom-image= “ image5.gif ” >
- “image5.gif” >
“#image”
).elevateZoom({ gallery:
‘gallery’
,
cursor
:
‘pointer’
, galleryActiveClass:
“activeborder”
});
“#image”
).bind(
“click”
, function (e) {
‘#image’
).data(
‘elevateZoom’
);
Output
blue-ribbon associate in nursing double from the give prototype and act the mouse onto the image to go steady the zoom indium .
For more information, download the attach sample distribution application .