Pages

Wednesday, July 29, 2009

JQuery ZOOM updated to Evolution

Views

JQZoom is a javascript image magnifier built at the top of the popular jQuery javascript framework.jQzoom is a great and a really easy to use script to magnify what you want.

Works on all modern browsers:

6+ 2+ 1.0 2+ 9+




Upload all files and directories from the jQzoom package to your server.The current package includes the JS,CSS,IMAGES folders.


Note: If you decide to rename folders or to change the directory structure,take a look a the image paths inside the CSS and remember to specify the correct file paths in your calling page.



Add first the last jQuery release, then the jQZoom script(don't forget this),the correct order is important.Look at the installation code below.

<script type='text/javascript' src='js/jquery-1.2.6.js'></script>
<script type='text/javascript' src='js/jquery.jqzoom-1.0.1.js'></script>

Add jqzoom.css to your header.

<link rel="stylesheet" type="text/css" href="css/jqzoom.css" />

Using jQZoom is easy,but you need to specify the HTML anchor element,that is going to generate the zoom

revealing a portion of the enlarged image.




<a href="images/BIGIMAGE.JPG" class="MYCLASS"  title="MYTITLE">

<img src="images/SMALLIMAGE.JPG" title="IMAGE TITLE" >
</a>



The anchor element wraps the small image you would like to zoom.Following this schema the necessary and base elements are:



SMALLIMAGE.JPG: Represents the small image you would like to zoom.

BIGIMAGE.JPG: Represents the big image that jQZoom will reveal.

MYCLASS: Represents the anchor class,that would be used to instantiate the jQZoom script to all the elements matching this class(you can use an ID as well).

MYTITLE/IMAGE TITLE: Anchor title and/or image title that will be used to show the zoom title close to the jQZoom Window.



Now load the plugin at window load.





$(document).ready(function(){

$('.MYCLASS).jqzoom();
});



This would instantiate jQzoom in default(standard) mode.You can pass more options(Documentation section),to create special or custom effects as in the example below.



$(document).ready(function(){

var options = {
zoomWidth: 300,
zoomHeight: 250,
xOffset: 10,
yOffset: 0,
position: "right" //and MORE OPTIONS
};
$('.MYCLASS).jqzoom(options);
});


Upload all files and directories from the jQzoom package to your server.The current package includes the JS,CSS,IMAGES folders.
Note: If you decide to rename folders or to change the directory structure,take a look a the image paths inside the CSS and remember to specify the correct file paths in your calling page.

Add first the last jQuery release, then the jQZoom script(don't forget this),the correct order is important.Look at the installation code below.



Add jqzoom.css to your header.

Using jQZoom is easy,but you need to specify the HTML anchor element,that is going to generate the zoom revealing a portion of the enlarged image.

The anchor element wraps the small image you would like to zoom.Following this schema the necessary and base elements are:

SMALLIMAGE.JPG: Represents the small image you would like to zoom.
BIGIMAGE.JPG: Represents the big image that jQZoom will reveal.
MYCLASS: Represents the anchor class,that would be used to instantiate the jQZoom script to all the elements matching this class(you can use an ID as well).
MYTITLE/IMAGE TITLE: Anchor title and/or image title that will be used to show the zoom title close to the jQZoom Window.



Configuration options:

You can choose between these options.

  • OPTION NAME
    DEFAULT
    DESCRIPTION
  • zoomType
    'standard'
    The other admitted option value is 'reverse',this is characterized by image opacity.
  • zoomWidth
    200
    The popup window width showing the zoomed area.
  • zoomHeight
    200
    The popup window height showing the zoomed area.
  • xOffset
    10
    The popup window x offset from the small image.(always positive value if the 'position' option is 'right/left', positive/negative if the 'position' option is 'top/bottom'.
  • yOffset
    0
    The popup window y offset from the small image.(positive/negative value if the 'position' option is 'right/left', always positive if the 'position' option is 'top/bottom'.
  • position
    'right'
    The popup window position.Admitted values:'right' ,'left' ,'top' ,'bottom'
  • lens
    true
    if setted to false,the small lens,over the image, won't show.
  • imageOpacity
    0.2
    Set the image opacity when the 'zoomType' option is setted to 'reverse'.
  • title
    true
    Show a small title over the image it can be the anchor title and if not specified,it will get the small image title.
  • showEffect
    'show'
    The Effect by which showing the popup window.Options available: 'show' ,'fadein'.
  • hideEffect
    'hide'
    The Effect by which hiding the popup window.Options available: 'hide' ,'fadeout'.
  • fadeinSpeed
    'fast'
    Changes fade in speed,in case the showEffect option is setted to 'fadein'.(options: 'fast','slow','medium')
  • fadeoutSpeed
    'slow'
    Changes fade out speed,in case the hideEffect option is setted to 'fadeout'.(options: 'fast','slow','medium')
  • showPreload
    true
    Show the preload loading indicator.(options: 'true','false')
  • preloadText
    'Loading zoom'
    Option to customize the preload indicator text.
  • preloadPosition
    'center'
    By default the preload indicator is centered over the small image.You can optionally use the 'bycss' option letting you to change its position by css.

Style customizations are obviously admitted simply changing the right parameters value in the 'jqzoom.css' file.



29 comments:

Anonymous said...

Everything is very open with a really clear clarification of the challenges.
It was truly informative. Your website is very helpful.
Many thanks for sharing!
Check out my web-site winston coupons

Anonymous said...

Can I just say what a relief to discover an individual who truly knows what they're talking about on the internet. You actually realize how to bring a problem to light and make it important. More people ought to read this and understand this side of your story. It's surprising you
are not more popular because you definitely possess the gift.
Also visit my website ... kent nanotek neo

Anonymous said...

Saved as a favorite, I like your web site!
Look at my web blog cheap winston cigarettes

Anonymous said...

Hi there everyone, it's my first visit at this web site, and article is really fruitful in favor of me, keep up posting such articles or reviews.
Also visit my weblog : exercises to increase height

Anonymous said...

Hello would you mind letting me know which webhost you're working with? I've
loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most.
Can you suggest a good web hosting provider at a reasonable price?
Thanks a lot, I appreciate it!
Also visit my blog post ... davidoff cigarettes

Chittibabu Madishetti said...

i dont know its a free blogspot theme and its google hosting i think.
and its a free...

Thanks
Every one for posting comments..

Anonymous said...

I am no longer certain where you are getting your info, but great topic.
I needs to spend a while learning more or understanding more.

Thanks for fantastic information I was looking for this info for my mission.
my site > Kent cigarette

Anonymous said...

Wow, marvelous weblog format! How lengthy have you ever been
running a blog for? you make blogging look easy. The total
look of your site is fantastic, let alone the content material!
Feel free to surf my web page ; how to increase height naturally

Anonymous said...

What's up to all, it's truly a fastidious for me to pay a visit this web page, it contains useful Information.
Feel free to surf my web page ; dunhill blue

Anonymous said...

I visited many web pages but the audio feature for audio songs current at this
website is genuinely fabulous.
Here is my webpage - pall mall cigarette

Anonymous said...

Write more, thats all I have to say. Literally, it seems as though you
relied on the video to make your point. You obviously know
what youre talking about, why throw away your intelligence
on just posting videos to your blog when you could be giving us something enlightening to read?
My web page ... cheap pall mall cigarettes

Anonymous said...

Hola! I've been reading your website for a long time now and finally got the bravery to go ahead and give you a shout out from Dallas Texas! Just wanted to tell you keep up the fantastic work!
Also visit my homepage ... nat sherman cigarettes

Anonymous said...

Great post! We will be linking to this great post on our website.
Keep up the great writing.
My weblog :: davidoff cigarettes price

Anonymous said...

It's very simple to find out any matter on web as compared to textbooks, as I found this piece of writing at this website.
Feel free to visit my page - nat sherman naturals yellow

Anonymous said...

I'm extremely impressed with your writing abilities as smartly as with the format for your weblog. Is that this a paid topic or did you modify it your self? Anyway stay up the excellent quality writing, it is rare to look a great blog like this one nowadays..
my web page > Winston cigarettes

Anonymous said...

Wonderful post! We are linking to this particularly great post on our website.
Keep up the good writing.
Feel free to visit my page ; lucky strike cigarettes

Anonymous said...

After exploring a handful of the blog posts on your web
page, I honestly like your technique of blogging. I saved as a favorite it to my bookmark site list and will be checking back soon.
Please check out my website as well and let me know what you think.
My web blog discount newport cigarettes

Anonymous said...

Howdy! I could have sworn I've been to this site before but after browsing through many of the articles I realized it's
new to me. Regardless, I'm definitely delighted I discovered it and I'll be bookmarking it and checking back frequently!
Feel free to visit my web page :: watch Football online for free

Anonymous said...

Very quickly this website will be famous among all blogging viewers, due to it's nice content
Here is my homepage - camel coupon me

Anonymous said...

hello there and thank you for your info – I have definitely picked up
anything new from right here. I did however expertise some technical issues using this website, since I experienced to
reload the web site lots of times previous to I could get it
to load properly. I had been wondering if your hosting is OK?
Not that I'm complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Well I am adding this RSS to my email and could look out for much more of your respective exciting content. Ensure that you update this again very soon.
My page - kent cigarette

Anonymous said...

These are genuinely great ideas in regarding blogging.
You have touched some pleasant things here. Any way keep up
wrinting.
My web site : cheap cigarette

Anonymous said...

Awesome article.
Have a look at my web-site :: How To watch nfl games online

Anonymous said...

Good article. I'm dealing with some of these issues as well..
Also visit my page : How To Get Rid Of Acne Overnight

Anonymous said...

Incredible! This blog looks exactly like my old one!
It's on a entirely different topic but it has pretty much the same page layout and design. Superb choice of colors!
My weblog how to grow taller

Anonymous said...

Greetings! Very helpful advice within this post! It's the little changes which will make the most significant changes. Thanks for sharing!
Feel free to surf my homepage how to get rid of acne overnight

Anonymous said...

What's up, after reading this amazing paragraph i am as well glad to share my know-how here with friends.
Feel free to surf my blog - how can i get taller

Anonymous said...

Good day! I could have sworn I've visited this website before but after looking at many of the articles I realized it's new to
me. Anyhow, I'm certainly happy I stumbled upon it and I'll
be book-marking it and checking back often!
Take a look at my webpage :: youtube.com

Anonymous said...

Thanks for your personal marvelous posting!
I certainly enjoyed reading it, you might be a great author.
I will make certain to bookmark your blog and
will eventually come back sometime soon. I want to encourage that you continue your great
work, have a nice evening!
my web site :: movies online

Anonymous said...

Wow, this post is nice, my sister is analyzing these things, therefore I am going to convey her.
Stop by my page - tattoo designs for women

Post a Comment

 

Web Design Company karimnagar, Web Designing warangal, Logo Design Company nizamabad, Indian Website Design Company, maddysoft.co.in