Simplex Design blog : Image zooming plugin | |
| Posted: 22 Nov 2011 07:51 PM PST Sometime ,we need a bigger and detailed version of an image ,but size of image is limited by post frame . So we can do a zoom function for image . For example ,you have a blog that selling children apparel . Because of the limitation of post frame ,if we add a big image ,it will break out the layout .If we add a small size image ,it's hard for buyer to see product in detail . It's time for zooming function . ![]() Download Installing this script is not different to lightbox effect . Now let's start 1,Download the script files and upload to your hosting . This step is required because I have no hosting in hand now . 2,Now add these line bellow before <body> <link href="/styles/cloud-zoom.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/JavaScript" src="/js/cloud-zoom.1.0.2.min.js"></script> 3,How to use In blog posting window ,after inserting image ,click on edit HTML ,and edit the HTML code of image to this form <a href="bigimage.jpg" class="cloud-zoom" rel="option goes here ........."> <img src="smallimage.jpg" title="Optional title display" > </a> Bigimage.JPG is the big and detail version of image Smallimage.JPG is the small version of image Class 'cloud-zoom' is required . 4,If your blog has a line for calling jquery framework ,do not add more <script type='text/javascript' src='js/jquery.js'></script> because more than one jquery calling can make all script stop .5,Options can be set by adding into rel attribute . I marked where to put option by the text "option go here" in the step 3 . Each option is separated by a comma ( , ) . Here is the list of options
|
| You are subscribed to email updates from SimplexDesign - free premium blogspot template To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |

Hiç yorum yok:
Yorum Gönder