Introduction to jQuery plugin
Introduction to jQuery plugin
JQuery plugins are ready made web applications which are reside in a .js file . You have to include this file in your web page to use this plugin. Plus you need to define it's functionality via it's attributes (if needed).
You can include plugin file in your application as :
<script type="text/javascript" src="PLUGIN-NAME.js"></script>
If needed , you need to set attribute according to the plugin definition .
For jQuery official site for plugin click here
Example : Zoom Image section using jQuery plug-in
he plug-in ,we are using here, is "zoom.js". For zooming an image you must have
image in small size as well as in big size both must be reside in same folder.
After that you have to set the image selection area by setting "xzoom" & "yzoom"
attribute . These attributes create a moving box which is used for selecting
particular section of the image. When you hover this box on image's any area ,
it will zoom that area.
zoomImage.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
OUTPUT :
When we hover mouse on any section of image :
Learn from experts! Attend jQuery Training classes.