File: example.html

Recommend this page to a friend!
  Classes of Jackson Knowlton   JavaScript Magnifying Glass Effect   example.html   Download  
File: example.html
Role: Example script
Content type: text/plain
Description: Example usage
Class: JavaScript Magnifying Glass Effect
Create a magnifying glass look over an image
Author: By
Last change: fixed bug
Date: 9 years ago
Size: 440 bytes
 

Contents

Class file image Download
<!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" type="text/css" href="includes/styles.css" /> <script src="imageMagnifier.class.js"></script> <script> $('document').ready(function(){ var magnify = new magnifier(); magnify.magnifyImg($('img'), 7, '250px'); }); </script> </head> <body> <img src="includes/exImage.jpg"> </body> </html>