Cabel.Cabel.

FancyZoom 1.1

Update: Version 1.1 released 2/8/08. Good bug fixes + Opera compatibility!

...so I fought back the charging Guanaco, immediately hopped on my paraglider, and basically caught the first flight out of Chile — but not without dealing with some cantankerous customs inspectors while drinking a cool glass of chicha. Really sorry it took so long! But hey, two years later, it's finally done!

Smooth Javascript Image Zooming For Your Web Pages

This much-requested chunk of Javascript to zoom images inline, originally written for this blog but later rolled out to the Panic website and used for screenshots, is now polished up, bug-fixed, available for you to use on your website!

Designed to view full-size photos and images inline without requiring a separate web page load, FancyZoom's raison d’être (French for "raisin-determination") is providing a smooth, clean, truly Mac-like effect, almost like it's a function of Safari itself. Since I originally wrote this script, there are now a lot of image zoomers to choose from (including a similar effect now on Apple's own site!), such as the popular (and inspiring) Lightbox. So you might be asking: "Cabel, why use FancyZoom?" Well, here's why!
  • Focused on the smoothest, most polished zooming animation possible
  • Automatically scales images from any image link, with no HTML changes
  • Preloads full-size images in the background on link mouseover
  • No resource-heavy Javascript libraries — 100% coded from scratch to zoom
  • Draws a nice drop shadow under the full-size image to offset it from the page
  • Uses Safari 3's "box-shadow" feature to draw the drop shadow natively, no images required
  • Requires only two new lines of code in your HTML
  • Tested and works with Safari, Firefox, IE7, and IE6. (Looks better in modern browsers.)

Since FancyZoom is so easy to add to a web page, I encourage you to give it a try!

Instructions

Installing FancyZoom on your web pages should be dead simple.

1 Download the FancyZoom package, right here:


2 Using Transmit (or your favorite FTP client), upload the two folders inside the package to the root of your webserver.

3Add the following two lines of code to the <head> section at the top of your web page(s):

<script src="/js-global/FancyZoom.js" type="text/javascript"></script>
<script src="/js-global/FancyZoomHTML.js" type="text/javascript"></script>

4Add onload="setupZoom()" inside your page's existing <body> tag. For example:

<body id="whatever" [...] onload="setupZoom()">

5Whoah. You're done! The rest is automatic — links to images in your page will automatically zoom the images. For example:

<a href="image.jpg"><img src="image-thumbnail.jpg" /></a> will zoom up image.jpg when clicked.

Additional Details

There are a few extra notes that you might find useful.
Want to add a caption? Add a title tag in your href. That's it!

FancyZoom will use the size of the first element in the href to determine the initial size and location of the zoom.

FancyZoom works best if you wrap your href around a thumbnail, but also works from text-only links to images.

FancyZoom will attach itself to any jpg, gif, png, bmp, or tiff link in your page.

If you're a Javascript hacker, FancyZoom's flexible fadeIn and fadeOut functions can be used for all sorts of fun stuff.

If you explicitly don't want an image to zoom, add a rel="nozoom" tag to your href.

Example

It's both an example, and some random pictures from Macworld Expo 2008!

Release Notes

Version 1.1 released 2/8/2008.
  • Improved Opera compatibility
  • Fixed an issue that would cause crazy infinite zooming
  • Improves caption behavior in certain situations
  • Now returns any alt-clicks and command-clicks back to the browser, for standard behavior (open in new tab, etc.)

License

FancyZoom is totally free for your non-commercial website.

In a bit of an experiment: if your website is commercial (i.e. makes you money), you can license FancyZoom for $39 per site, a one-time fee. Instantly add nice image zooming to your site. Click here to instantly and securely buy a license.

Enjoy

I hope you and your websites enjoy FancyZoom. If you make any cool changes or improvements, let me know! And if you have awesome feedback, or find weird bugs, drop word in the comments.

PS: Yes, you can even hold shift when you click an image. The Apple tradition continues!

731 Comments:

«Oldest ‹Older 201 – 400 of 731 Newer› Newest»
This is another great Lightbox clone. I think it might do well with a dark background but maybe I'm just used to seeing that effect.
Anonymous Anonymous 3/06/2008 1:34 PM  
Inferno: It's by design. FancyZoom scales the full-size photo to fit in the browser window without requiring the user to scroll. I can consider making this optional in the future, but it seems like bad UI -- having an image zoom up beyond the window, having having the close box be off-screen, etc.
Blogger Cabel 3/06/2008 9:54 PM  
Hello I am trying to test this to see if it will work for me but I am still new to code for js. I have printed and read your instructions but it will not work for me. I am using dreamweaver and I was wondering if this only works once it is loaded on the server? Also when I look at what you say to placed in my code against what you have in your source code it looks as if I am putting in less information. I have setup a test page www.dimes2dollars.com/untitled.html I would love some help with getting this to work from you or anyone else that has tried your code.
Anonymous Anonymous 3/09/2008 3:39 AM  
How do I get the lens on the right corner of the image? Or is this a part of the image?
Anonymous Anonymous 3/10/2008 3:57 PM  
The instruction to place the two folders in the package into the root folder didn't work. (the folders being __MACOSX and FancyZoom 1.1)
However placing the two folders contained inside FancyZoom 1.1 which are images-global and js-global did the trick !
Blogger Unknown 3/10/2008 5:56 PM  
The Best Javascript image component I have seen so far!
Anonymous Anonymous 3/11/2008 1:23 AM  
Really nice, does not work on my System with IE 6 / IE 7.0.5730.13 Windows XP Sp2.

The image is opened in a window. (fallback)
Anonymous Anonymous 3/11/2008 8:12 AM  
Very Nice
Zooming works but I can't get the close box or any shadow boxes around the zoomed image to work. I'm a novice with web work and js.
I have the index.html file and images under a folder on my pc. But on my website (its with bell sympaticos webspace)there's only the root with html file and my images and the images-global and js-global folders. On both places, I have to leave out the / in the script tags in front of "js-global/FancyZoom.js" to get it to work.
But zoom works.
Blogger guy45 3/11/2008 10:31 AM  
It seems my comment was lost so I'll try again, since I thought you'd probably want to know.

I realize Firefox 3 is still in beta, but FancyZoom runs much slower in it (FF3 Beta 4) than in FF2. I think it has to do with the new image anti-aliasing that was introduced along with full page zoom. As a result, the images look nicer while your script resizes them, but the animation is a lot rougher. My system isn't the slowest in the world (Athlon 3200+) so this will probably be happening to a lot more people.
Anonymous Anonymous 3/11/2008 6:29 PM  
Hey Pinoy- that Jollibee is at the southern corner of the Moscone Center in San Francisco, 4th and.. Howard maybe? It was there for a number of years, disappeared to be replaced by Cha-Am Express Thai food, then mysteriously reappeared last fall. I confess I'm not a huge fan, but maybe real Jollibee is better.
Anonymous Anonymous 3/13/2008 8:38 AM  
This is really a very striking way of displaying images. A nice change up on the whole "lightbox" theme.

Great if for nothing other than this photograph What a mullet!
Anonymous Anonymous 3/13/2008 10:29 PM  
I have the same problem as Sean, the iamge lood but the closebox button and the Spin missing ... any idea ?

www.stephanedouville.com/sd/
Anonymous Anonymous 3/14/2008 6:35 AM  
Stephane:

I had trouble with the shadow, closeboxes etc.
Not sure if your is same issue but here's what I did.
In FancyZoomHTML.js after this statement
var zoomImagesURI =
I put the full path "http://etc etc.. in front of '/images-global/zoom/"

And in my html I did the same for the js entries.
"script src="http://etc etc.../js-global/FancyZoom.js" type="text/javascript">"

Someone posted this too and it looks great with a border if you have a lot of white like yours.
add this
"inImage1.style.border = '10px solid white"
put in line 63 in FancyZoomHTML.js

I used "black" and it looks good.
Blogger guy45 3/14/2008 7:11 AM  
Hey, great little image zoomer. I would like to use it in a couple of Wordpress site I am working on (commercial so $ -> you) but I was wondering if there was a way to change the thumbnail separator to a . instead of a - (so that the default way WP creates a thumbnail will work automagically) Right now your scripts looks for a image-thumbnail.ext, while WP generates a image.thumbnail.ext . I assume this is would be an easy change (perhaps one I could make myself if I knew where to look) but perhaps it is the opposite of easy and I should shut up?
Anonymous Anonymous 3/14/2008 12:42 PM  
Test comment.
Blogger Cabel 3/14/2008 5:34 PM  
Great zoom tool! One bug that I've found though is that when using one of the "carousel" type objects that many existing js libraries provide (prototype as would be the case with what I'm trying), clicking a link to fire up the large image has the animation starting from off the screen (presumably because that's the position of the image when the page loads). Is there any way to fix that? The start position itself doesn't bug me too much, but when you close the image it does leave nasty horizontal scroll bars.
Blogger Robert Marini 3/17/2008 1:07 AM  
is it possible to open html sites with fancyzoom?
Anonymous Anonymous 3/17/2008 6:49 AM  
there is a problem with fancy zoom with the use of a doctype. When there is a strict.dtd doctype element at the start of the html page, the shadow pngs appear displaced.

Is there a way to fix this?
Blogger synapsisB 3/17/2008 12:32 PM  
Confirming the earlier comments about being slow in IE7. Completely unusable, painfully slow.
Which is a shame, because it works beautifully in Firefox and looks stunning.
Anonymous Anonymous 3/17/2008 12:41 PM  
Not sure if it's been mentioned, but the zoomed image goes behind form inputs in the IE's.

Not sure if you can fix the depth, I know a lot of lightboxes simply hide all form inputs when it's open.
Anonymous Anonymous 3/17/2008 1:13 PM  
Great job, Very Senks.
But one question - how do this - navigation next\prev by the left\right half of full image (like this effect http://www.digitalia.be/software/slimbox )?
With the best wishes, Beliyadm
Blogger beliyadm 3/17/2008 3:42 PM  
Just checking in again to find out if anything been done to improve performance in IE7.

A while ago, we were about to implement this FancyZoom in a client site but, luckily, someone remembered to test against IE7 and, unfortunately, the performance just wasn't acceptable for a production website.

The danger is that, of course, most developers use FireFox or Safari, forgetting that the vast majority of ordinary users, something like 90%, use IE. Obviously, we designers are supposed to test against all browsers but, in reality, we all get lazy from time to time and booting into Windows or using Parallels can be a drag. Frankly, this means that someone could accidently use FancyZoom, not realizing how badly it will perform for the majority of their visitors.

Hopefully, Cabel will get around to solving this issue - it must be possible because Apple's implementation of almost exactly the same thing, on their site, works just fine in IE7.
Anonymous Anonymous 3/18/2008 11:24 AM  
In regards to IE7 performance:

First, it looks pretty much fine to me in IE7 -- it's slower, but it works, and still zooms. I'm testing using IE7 on Vista. Can you send me an example page showing what you're seeing?

Second, I'm not exactly sure how I would "fix" IE being slower. I use the exact same zooming code across all the browsers, no changes. As you can imagine, it's pretty suspect to me that it's perfectly smooth in Firefox and Safari but slow in IE -- it's meaning it's an IE performance issue. I could try to work around it, like I'm guessing Apple does, but that would mean simply reducing the number of animation frames for IE only, making the animation very choppy. It doesn't seem like a great solution.

Maybe IE8 will fix it before I do? :)
Blogger Cabel 3/18/2008 11:39 AM  
Cabel - I suspect that, being a developer, you might be using a fairly high-powered computer, with a reasonable amount of memory. I notice that others have emailed to the list complaining of poor performance in IE7 - they might have less powerful computers, more representative of the rubbish most people are sold, Celerons with 512MB etc.

I have even less idea of how you might fix it, I just presume, by Apple's example, that there is a more efficient way to achieve the same effect in IE7, without reducing the number of frames.

IE8 might be great but, again, normal people aren't as eager to upgrade their browsers as you or I would be. The number of old browsers out there, in active use, is really shocking.

Anyway, thanks for replying, good to see that you are still engaged, I'm sure that if you discover any handy tricks specific to IE7, you'll implement them.
Anonymous Anonymous 3/18/2008 11:58 AM  
IE7 Slow Performance

Applying basic troubleshooting here.
If I use Firefox to view Cabel's site, his pics zoom fine. Switch to IE7 (on same pc of course) and zooming is very slow. I have both a fast and a slow pc and this behavior of zoom is same on both.

My website is very basic. No CSS.
My 8 pics zoom fast either in IE7 or Firefox.
Sorry if this is an obvious point but isn't it just that IE7 is slow with processing a significant bulk of CSS and/or css with js ? I seem to remember seeing tests that show this.
Can anyone else test their website omitting CSS temporarily and see what happens? I'm IT, not a developer - sorry if this is a dumb thing to say - just trying to apply basic troubleshooting first.
Blogger guy45 3/18/2008 12:03 PM  
This is terrific - Thanks. I've only struck one problem which is when the picture zooms under existing embedded flash movies blanking out an area in the picture
Blogger nick 3/19/2008 12:52 AM  
you're the messiah!
Anonymous Anonymous 3/23/2008 10:28 AM  
Really nice! Still some bugs that results in a blank and small white image.
Anonymous Anonymous 3/24/2008 8:14 AM  
I truly love FancyZoom, it's the best(and only) JS image zoomer I've seen! However, I can't get it to work. Check my source code at http://te1b.no-ip.org/test/thumbtest.html.
When I try the page in IE, i get the "Error on page" message in the statusbar. It doesn't seem to like the body tag for some reason. Please help!
Anonymous Anonymous 3/25/2008 6:16 AM  
Very neat function, renders nicely.

But I'm sorry, the horrible genereated table markup stabbes me in the eye. I recon you could make som real improvements in filesize there.

I just have to fix that sometime.
Anonymous Anonymous 3/25/2008 10:22 AM  
hey, how do you get this thing to show the tiny black button and the shadow instead of the corner graphics with the large borders?
Anonymous Anonymous 3/25/2008 12:51 PM  
Looks really great, but I test your demo on this website under linux and windows. Here are my test results:

Linux Firefox - image zoom very slow
Linux Epiphany - image zoom very slow
WinXP IE7 - image zoom very slow
WinXP Firefox - image zoom fast
WinXP Safari - image zoom fast
WinXP Opera - image zoom fast

What's the reason for this? I think this feature should work the same on every platform/browser?

~Bernd
Anonymous Anonymous 3/27/2008 11:18 AM  
Bernd: Great question. You might want to talk to the browser guys! :) The code is the same on all platforms.

I'll try to find a way to "normalize" the animation and skip frames on bad browsers, but it'll take a while.
Blogger Cabel 3/27/2008 12:09 PM  
This comment has been removed by the author.
Blogger weaver . 3/27/2008 2:40 PM  
This comment has been removed by the author.
Blogger Brot 3/28/2008 12:09 AM  
Hello cabel,

I am new to Javascript and webdevelopment. But I think, that this is not only a browser problem. Firefox under Win-XP works fine and under Linux(Ubuntu) it doesn't?
I also tested the new Firefox 3 Beta under Linux and the image zoom is also very slow :-(

I looked at a lot of Javascript functionality in the last time and there are a lot of implementation which works fine on all tested platforms/browsers.

I hope you understand my criticism right. I don't want to flame you.
I like your work, but It would be a great enhancement if it's work the same way on every platform/browser

~ Bernd
Anonymous Anonymous 3/28/2008 12:17 AM  
Bernd: I'm not sure what to say -- like I mentioned earlier, the zooming code is exactly the same across all browsers. I don't have special "be slow on Firefox Linux" code. :)

Any variations on how it actually behaves is 100% up to the browser itself, and literally beyond my control!

Again, I can drop frames maybe on slower browsers, so at least the physical time (one second, etc.) would be the same. It just might stop zooming entirely on bad browsers... the zooming effect pushes web browsers a bit beyond what they were really designed to do. A good browser like Safari will handle it fine.
Blogger Cabel 3/28/2008 12:44 AM  
Great Job with the coding. However, I just couldn't get it to work consistently over FF 2.x, IE 7/6. Lots of flickering, maybe I just need to tweak the animation framerates.

However, I did successfully integrate Shadowbox into my test blog and it works much nicer. Lots more options, keyboard shortcuts, multiple file types, and works cross browser. Although it may be slightly 'heavier' code, it works pretty much out of the box. That's what i'm looking for. Good job though, I'll be monitoring for updates to FancyZoom
Blogger Karl 3/28/2008 2:25 PM  
Thanks for this article, pretty useful.
Anonymous Anonymous 3/29/2008 3:33 PM  
i desperately need a multi-line description. please please please...
Anonymous Anonymous 3/31/2008 8:40 AM  
Very cool! THX
Anonymous Anonymous 3/31/2008 9:47 AM  
Hi, I'm not sure what tools you use, but if you export the transparent PNG files as PNG8 instead of PNG32 in Fireworks (or other programs) it should fix the current IE6/IE7 issues.

Great code though, and looks lovely in Firefox. Thanks!
Blogger blizeH 4/01/2008 12:59 AM  
Just seen that the website for the new OS X FTP client "Flow" uses FancyZoom on their website.

Kind of ironic as Cabel and the Panic gang use it on the Transmit page. (OK ironic in a purely geek way).
Anonymous Anonymous 4/04/2008 7:59 AM  
Amazing script! I can get it work easily on my site, but I need help to get it work at my blogspot page: kuubikus.blogspot.com

How to make it work?
Blogger Andres 4/05/2008 7:16 AM  
cool!
Anonymous Anonymous 4/05/2008 7:45 AM  
I love this script and planning to use it on a commercial site (with payment of course). I found one little bug that I can't get rid of. Only in Firefox, when I add a title the last letter or two doesn't have white behind it and it looks cut off. Check it out on your page, image mwsf-27. THANKS!
Blogger No New News Newsletter 4/07/2008 10:35 PM  
Hey, supertolles Script !!
- macht sich auf unseren Feuerwehrseiten riesig toll!
Thanks a lot for this magic script!!!
Anonymous Anonymous 4/08/2008 12:59 AM  
Hey, great work here. Your script inspired me to rewrite my dynamic image gallery software. (FauxWeb Image Gallery) It looks and operates much better than before. I wrote the new interface, specifically to allow easy plugins of FancyZoom, and Lightbox clones & derivatives.

I did come across a technical issue with FancyZoom though. With many images on a page, the mouseover trigger for the preload, causes so many simultaneous image load connections, that by the time the user selects the image they want to zoom, the script times out loading it. It just displays a tiny white box, with close icon, but no image. This was easily corrected by changing mouseover to mousedown on the preload line.

Thanks again!
Anonymous Anonymous 4/08/2008 11:13 AM  
Hi. Great javascript! I have a blogspot Blog, but I cant'use FancyZoom on my blog. I nedd to upload files to another site, but the script don't load images...

Where I ahve to modify scripts?

Thank you
Blogger Davide 4/09/2008 3:23 AM  
Hi, just have to say: really nice script. Prefered it over the other zooming scripts, thanks to the smooth zooming and simplicity.
But. I'm using it for a school project: My test site
(very early embryo)

and as you can see, the zooming is quite .. laggy with Firefox. I dunno why; you sample pictures have lesser file size than mine, it won't work as intended anyway.
Some tip?

Thanks in ahead.
Blogger Unknown 4/10/2008 12:01 PM  
Hi,
maybe I'm being dumb but I'm new to script of any kind,

I'm using iWeb '08, where can you edit the head and body tags because at the moment I'm just using the built it html snippets, is it possible to do it with these?

if anyone can help it would be brilliant,

the page I'm hopefully gonna use this on is on the models page of this website,


http://www.harryatkins3ddesign.com/general_models.html,


Thanks,

Harry
Blogger HJ 4/11/2008 5:31 AM  
They have projected HTML coding in such an easy way... if it were to be as easy as ABC then any Tom and Harry would be coding for big firms.
Anonymous Anonymous 4/11/2008 11:53 PM  
I am getting the zoom to work but it sit below my flash object... how could I fix this?
Anonymous Anonymous 4/12/2008 7:53 PM  
I'm having the same problem as Circlemed. Everything works as expected, except all the zoomed images are displayed at the same aspect ratio as the first image on the page. I set up an example at: http://justin.hurty.com/photos/jch/

all the thumbnails are accurately sized. But the zoomed images adopt the aspect ratio of the first image on the page.
Anonymous Anonymous 4/13/2008 6:20 AM  
Why not give credit where it's due?

http://digitarald.de/playground/remooz.html
Anonymous Anonymous 4/14/2008 11:11 AM  
Remooz: Mostly because I've literally never seen that page before! :) I wrote the script, from scratch, in mid-2005, and it debuted here on January 1st, 2006. (The Remooz source says "Inspired by so many boxes and zooms" — was mine one? Who cares!)
Blogger Cabel 4/14/2008 11:24 AM  
Hi. I'm loving this script!
Great work! I was wondering if there is a way to zoom the image onMouseOver instead of onClick ... do you know how to achieve that?
Blogger Unknown 4/15/2008 8:06 PM  
Hi there,

neat effect, but I found it after encountering a bug in fancybox. Made a test page. Somehow all these zoom effects don't like flash elements. If you manage to fix this overlaying problem (flash stays in front), I'll buy a license ;)

http://home.edo.uni-dortmund.de/~theql107/ocean8/test.html

Doesn't happen on the Mac btw., although it really messes up the Flash in Firefox, Safari 3 is just fine.
Anonymous Anonymous 4/16/2008 7:04 AM  
If my previous comment ever shows up, it was a flash param that did the trick for me...
Anonymous Anonymous 4/16/2008 9:00 AM  
I've tried everything, but I can't seem to get this to work. Anyone have any ideas? http://iam.colum.edu/students/Adam.McAmis/AIM/projects/image.htm
Anonymous Anonymous 4/16/2008 4:00 PM  
bugs in IE 7 as well as the Fire fox 2.0.0.14

in IE7 the shadow is not visible

In FF, the Image is not loading , but the shadow is visible

hope you will fix that bug

Chreeers
yoosuf
Blogger Unknown 4/20/2008 10:56 AM  
What's the easiest way to trigger FancyZoom from a swf?

I've tried calling a simple getURL with the .jpg as the link.
Anonymous Anonymous 4/20/2008 9:09 PM  
I want to disable the image scaling. Is it possible to do this? I realize if the image is too big it may cause scrollbars, but that won't be an issue for me. The scaling is distorting some images I would like to display using it.

If anyone has any suggestions it would be appreciated.
Anonymous Anonymous 4/22/2008 12:34 AM  
I'm having some issues in Fancyzoom with the latest Safari release, any ideas?

Jerad Hill
Blogger Jerad Hill 4/23/2008 11:53 AM  
Set FancZoom up on a couple of sites. Works fine in Safari and Firefox, Mac and Windows. Even in MSIE 7.x. Not so good in Flock. The images are not the right size, sometimes don't open at all.
Anonymous Anonymous 4/23/2008 11:45 PM  
I seem to have a problem with FancyZoom on my page. I have some webcam pictures that updates automatically each minute. When I enter the site and click a picture, FancyZoom is working. But later, when the pictures are changed, when clicking, FancyZoom brings up the first picture, not the updated one. Any way to solve this? You can see it on my test page here:
http://www.runarweb.com/drammen.html
Anonymous Anonymous 4/24/2008 11:37 PM  
You're right — FancyZoom is fancy! It might be pricey for some commercial websites that are running lean. The good news is that there are tons of totally free image zooming scripts out there, such as the excellent Lightbox. I'd probably recommend one of those scripts for a website that doesn't have a spare $39 in their budget.
Anonymous Anonymous 4/25/2008 8:51 PM  
Hey love the script very sexy!

I'm having some trouble getting it to work and would be very grateful for some help.

I followed the install instructions but when I click a thumbnail image the loader appears but doesn't load the full image.

I'd really appreciate some help if anyone has a spare moment? My site is at http://www.jonlamb.com

Thanks for helping, Jon
Anonymous Anonymous 4/26/2008 1:20 AM  
Hi,

could someone please give some help on how to get fancyzoom to work, in iWeb??

I'm using iLife 08 and i want this effect on my gallery pages here: www.harryatkins3ddesign.com

any help would be great thanks,
Anonymous Anonymous 4/26/2008 7:49 AM  
I only browsed through the first 100+ comments or so, sorry if this is redundant...! But would it be possible to make this into a WordPress plugin for the code dummies among the many people who find this functionality amazing...?!?

Or maybe it's just me who's too stupid to work this out, but I'm so not a coder and yet would love to be able to implement FancyZoom on some WP blogs...! :(

Thanks in advance!
Anonymous Anonymous 4/28/2008 6:49 PM  
God, that's slick. I have a current project that FancyZoom will work really, really f'ing well in.

Thanks for the great work. You'll be getting $39 soon.

(Between FancyZoom and Coda you've really raked me over the coals... ;-) )

Kyle
Anonymous Anonymous 4/28/2008 7:12 PM  
hi!
nice job!
does anybody had problems with reflection.js?
there might be some var that crash!
and i can't find it
Anonymous Anonymous 4/30/2008 4:09 AM  
Hey, just wanted to share my portfolio site that uses fancy zoom.

http://caseyagollan.com

Thanks!
Anonymous Anonymous 4/30/2008 7:40 PM  
I love it! Adds that extra bit of polish to my site. Any chance you'd think of adding support for zooming video? I tried to edit and add support myself, but with no luck.
Anonymous Anonymous 5/01/2008 6:17 PM  
@inferno: maybe your image is simply way taller than the browser window? so it gets resized to fit in?
Anonymous Anonymous 5/02/2008 11:08 AM  
Heh. I just spent 15 minutes trying to figure out how you'd added the magnifying glass icon to the bottom right over each thumbnail. Then I realised it was on the original image :)

Great work on this. I'll be buying a licence shortly.
Anonymous Anonymous 5/05/2008 6:33 AM  
Hello,
Firstly, sorry for my english :)
Is it possible to get a link without an image?
Example:

NOW
//imgsrc=test_thumb.jpg//

I`M SEARCHING
testpic

Thanks for help.

Mike
Anonymous Anonymous 5/08/2008 4:12 AM  
Hey, this is great script! But I have one "problem" with this...My gallery has big files, so the loading time is huge too...is it possible to make the script to handle the images even though the rest of the images are not yet loaded? I have to wait up to 30 seconds, or I get a new tab with the image I clicked.

Godspeed!
Anonymous Anonymous 5/08/2008 4:55 AM  
For some reason, random images are showing the image caption (link title) non-centered in IE7 (I'm testing, don't worry -- I'm a Mac user).

Any ideas on that?
Blogger Maury 5/09/2008 5:11 PM  
I just purchased a license. Thanks for the great script!
Norm
Anonymous Anonymous 5/11/2008 11:12 AM  
Hi can't seem to get this to work im not very good at this stuff can i put onload="setupZoom()" into the css file?
Anonymous Anonymous 5/12/2008 12:36 AM  
Someone mentioned having the closebox on the right instead of the left. I achieved this by changing the FancyZoomHTML.js to read:


// In MSIE, we need to put the close box inside the image.
// It's 2008 and I'm having to do a browser detect? Sigh.
if (browserIsIE) {
inClosebox.style.right = '-1px';
inClosebox.style.top = '0px';
} else {
inClosebox.style.right = '-15px';
inClosebox.style.top = '-15px';
}
Anonymous Anonymous 5/15/2008 1:46 AM  
Hi there!
I'm contemplating to use FZ. But a weird thing happens on my page. http://www.selecxyz.eu/html/regio/7Apulie/03APMA/03APMA.html
In IE6 and IE7 two weird little lines come out of nowhere in my header. Not so in FF. It has something to do with the onload command in the body. Is there a solution? Kind regards, wouter reefman
Blogger wouterderk 5/15/2008 4:36 AM  
hi there!

I'm contemplating to use FZ in my site.

But something strange happens. In IE little stripes appear in
the header. It is trickered by the onload command.

http://www.selecxyz.eu/html/regio/7Apulie/03APMA/03APMA.html

Do you have a solution?


kind regards,

wouter reefman
Blogger wouterderk 5/16/2008 6:59 AM  
This is a great tool! Thank you for contributing it. If I end up using this, even for private use, I will pay for a license, if only to encourage you to continue development (and I think everyone that can afford to, should).

Might be handy to have a couple of tools to run though a directory of images to create thumbs and a mockup image gallery, where you could use some of that layout code in a web page or presentation; would save some time.

What do you use to generate your thumbnails? I know there is ImageMagick and other utilities available. I have a Mac, of course.

Thanks again!
Blogger forrie 5/19/2008 7:19 AM  
Mmm second time posting a comment... didn't work last time..

I too would like to use Fancyzoom with a map area. Titanium Power said he has a mod and would post it but never did.

Could someone help here ?
Thanks in advance.
Anonymous Anonymous 5/19/2008 11:49 AM  
It seems like FancyZoom will use the proportions of the FIRST image you click on the page after load. I'm trying this with a bunch of images of differing proportions:

http://www.golike.com/burklund/collections/

If you click the first image, it looks right. But then try the others and they're all shrunk to the first image's proportions. Reload the page, only this time click another image first. It looks good but then the rest you click conform to that image's proportions. Is this what everyone else is seeing?
Anonymous Anonymous 5/19/2008 8:14 PM  
The Plugin is great and really my whole hearted thanks.

Question: My theme is Widget based, using, wordpress 2.5. I want this plugin for the posts not the pages so where should i place the code.

Header.php or somewhere else.

Plz. Help
Anonymous Anonymous 5/20/2008 7:16 AM  
has anyone an idea, why it doesnt work with IE 7
(this site: http://www.leonieadam.at/index.php?page=beisarahwiener )

in firefox, safari it looks great
Blogger Mag. Erwin Haas - iHaas 5/20/2008 9:38 AM  
Hi, thank you for the nice script :)
I'm using fancyzoom on my blog wordpress, the zoom work perfectly, but I have a problem of compatibility with my rating bars: (http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/ ), do you known how to fix it please? Thank you
Anonymous Anonymous 5/20/2008 8:14 PM  
Great script, certainly the best looking one out there! I do have a question though -- I'm working on a horizontal scrolling site right now, something like 3000px from left to right. The photo section is about 1000px to the right, and you need to scroll about a window's width to get to it, and when I use this script the image opens all the way to the left and off the screen. Is there any way around that? The only script that works that I've found is MagicToolbox's MagicThumb, but that's kinda ugly...
Anonymous Anonymous 5/21/2008 12:46 AM  
Here's what I did to fix the Firefox problem mentioned by kari.patila.

Since the transparent gradient only works in the four corners, we need to make sure that the gradient works in the middle areas, between the four corners.

That's top middle, left middle, right middle, and bottom middle.

These correspond to the following graphics:

zoom-shadow2.png
zoom-shadow4.png
zoom-shadow5.png
zoom-shadow7.png

1. Edit the table generated by FancyZoomHTML.js so that there's an id attribute for the top, bottom, left, and right middle TDs.

var inCol2 = document.createElement("td");
inCol2.setAttribute('background', zoomImagesURI+'zoom-shadow2.png');
inCol2.setAttribute('id', 'shadow2');

...

var inCol4 = document.createElement("td");
inCol4.setAttribute('background', zoomImagesURI+'zoom-shadow4.png');
inCol4.setAttribute('id', 'shadow4');

...

var inCol6 = document.createElement("td");
inCol6.setAttribute('background', zoomImagesURI+'zoom-shadow5.png');
inCol6.setAttribute('id', 'shadow5');

...

var inCol8 = document.createElement("td");
inCol8.setAttribute('background', zoomImagesURI+'zoom-shadow7.png');
inCol8.setAttribute('id', 'shadow7');

2. Add the following styles to your stylesheet

#shadow2 {
background: url('/images/zoom/zoom-shadow2.png') repeat-x; }

#shadow4 {
background: url('/images/zoom/zoom-shadow4.png') repeat-y; }

#shadow5 {
background: url('/images/zoom/zoom-shadow5.png') repeat-y; }

#shadow7 {
background: url('/images/zoom/zoom-shadow7.png') repeat-x; }

Remember... if your images are located in a different spot, you'll need to update the css accordingly.

3. If you see a 1px offset on the top or left, you can fix this using CSS:

#ZoomImage {
margin-left: -1px;
margin-top: -1px; }

...

That should do the trick!
Anonymous Anonymous 5/21/2008 9:06 AM  
Cabel,

Greetings from Vancouver ... the Canadian one!! I've just discovered your excellent work and thoroughly tested it out into an ASP.Net environment. I noticed that some others have wondered if it works with ASP.Net. It does! To help them and others I wrote a long blog entry about it here.

Note: I'll buy a commercial license when my website goes live to the world.

Great work!

Robert W.
Blogger Robert W. 5/21/2008 3:22 PM  
Hi Cabel, I just purchased FancyZoom as a last minute addition to a mostly finished commercial site I am working on. I am encountering a bug that causes the image--when clicked--to shrink and shoot to the top left of the page. FancyShrink! I'm calling quite a few scripts. Could one of those be interfering with it?
Anonymous Anonymous 5/21/2008 10:21 PM  
Well, it turns out MooTools was to blame. Apparently it likes to bully other scripts. They cower in fear and shrink away.

Puns intended.

But now that the FancyZoom is zooming instead of shrinking, it's creating havoc with flash content on the page. On IE7, it hides the image behind the flash content. On Firefox for Mac, it causes the flash content to disappear even after the image has been closed. Yikes! I can't use this on a commercial site with these problems. :(
Anonymous Anonymous 5/21/2008 10:38 PM  
I'll echo Inferno's question ... is why I came by just now.

I love the functionality; just took it for a spin with my Rockie Mountains Maps project to replace the click-maps I've been using, but was surprised to see that the zoomed image is not shown full size.

I'm sure you did this on purpose ... good design, actually ... but it should be a configurable option, no?
Blogger Bernard (ben) Tremblay 5/23/2008 12:16 PM  
GREAT WORK!

I will write a article about your script on ajax-frameworks.de!

Best Regards,
Sebastian
Anonymous Anonymous 5/28/2008 12:18 AM  
Hi,

i'm new to javascripting,

can someone please give a step by step tutorial on how to get this to work on iWeb '08??

the website i want to put fancy zoom on is here :
[ www.harryatkins3ddesign.com ]
on my pages i would like people to be able to zoom in on the pictures for a better look.


thanks in advance to anyone who can help.
Anonymous Anonymous 5/28/2008 6:52 AM  
Thank you, it's very nice !! It's perfect for my web site :) http://photos.dreamgirls.free.fr/index.php?show_heading=detail&dir=adriana-lima&photo=52
Anonymous Anonymous 5/28/2008 3:23 PM  
all that aside... thanks so much for your work.

quick question. is there a reason i would not be seeing the zoom icon on each image? i noticed there was no corresponding image in the image folder. i tried downloading a 2nd time with the same probs.
Blogger Unknown 5/28/2008 10:28 PM  
To avoid flashing bug in IE6, insert the following code to the html header:

META HTTP-EQUIV="imagetoolbar" CONTENT="no"
Blogger Unknown 5/30/2008 5:44 AM  
I wonder if you still check these comments? anyways, thank you so much for making this script, its cleanliness and compatibility is not only a great stand alone module but also a great example for how scripts can and should be written...

i am having one problem though, the popup image is being partially covered by a flash slideshow that is embedded a few lines above the fancyzoom image.

is there anyway to make sure this popup covers everything below it? namely a flash movie.

thanks in advance, and kudos on the script.

.m
Anonymous Anonymous 6/01/2008 2:20 PM  
Don't hold your breath.
Anonymous Anonymous 6/01/2008 5:57 PM  
having trouble with the pop-up popping under flash embeds.

You can see it at this page -- http://tinyurl.com/5sp59s -- and on these screen caps -- http://tinyurl.com/6y9h9q , http://tinyurl.com/65n65n.

any idea how to change that?
Blogger Johnny Rollerfeet 6/02/2008 8:50 AM  
This is just awesome.
And better than lihtbox
Anonymous Anonymous 6/02/2008 10:10 AM  
great tool / thank you very much
Blogger tiltingmob 6/04/2008 10:33 PM  
This script is really great. However, I'm finding some weird issues when I zoom pictures on a small display (1024 x 768).

On this webpage (http://alphaauthority.com/node/52), I'm trying to scale up an image when a user clicks on it but FancyZoom scales the image down instead. In Firefox 2.x, the shadows around the image also don't render properly in the right place.

It seems the script is trying to fit the entire image into the browser window. Is there a way to force FancyZoom to zoom to 100% even if the large image may be cropped by the browser window?

Many thanks.
Blogger Albert 6/05/2008 7:56 PM  
Hey Cabel -
Love the zoom effect, but as a few other people inquired about - I need to be able to zoom to actual size of the file to use it on my site.
Is there any way to change the code to not adjust to browser size and just go to full size?
I'd be happy to pay the license fee , but need to be able to zoom to full size!

thanks
--John R
Blogger JohnR 6/07/2008 7:24 PM  
The Code breaks down if an image you want to apply the effect to is placed inside of other elements that are also using javascript. Namely inside of elements that use Spry / Ajax. This would be a pretty slick integration
Anonymous Anonymous 6/12/2008 4:51 AM  
Another version of this with a few more features, drop shadows, borders, flash, html, etc. Highslide:
http://vikjavev.no/highslide/
Anonymous Anonymous 6/12/2008 9:16 AM  
Hey there,

Awesome script! Holding the shift key for slowmo 'osx style' is a particular nice touch! :)

May I make a small suggestion? Internet explorer does not support transperancy in .png files, but transperant .gif files work withour a problem. Maybe it is an idea to use gif's for the borders, cause they look kind of crappy now (on internet explorer that is) I don't use it myself, but I think there are still a lot of people who do.

Just a suggestion. Awesome job. Thank you.
Anonymous Anonymous 6/13/2008 1:57 AM  
amazing!
Anonymous Anonymous 6/14/2008 4:57 AM  
Super Stuff... :)
Anonymous Anonymous 6/16/2008 11:59 PM  
Hi Cabel,

I'm encountering a strange problem with FancyZoom 1.1... in WebKit browsers, everything looks almost perfect, but in Gecko browsers, I'm seeing white rectangles along the borders of the image and its associated box.

For an example on my website, try this blog entry that has an image to try things with.

I think the problem is probably caused by a conflict between the CSS styles from my website design, combined with FancyZoom's generated CSS. But for the life of me I can't figure out the problem. Any hints?

(Although I'm sure you probably have better things to do, please feel free to e-mail me — link is on the right sidebar of my website, under "Contact the Webmaster" — if there's any more information I can give you. I'll keep an eye on these comments, too.)
Anonymous Anonymous 6/20/2008 9:03 AM  
HOW THE HELL CAN THIS BE USED ON A BLOGGER HOSTED BLOG PLEASE ?
I've tried to make it work on blogger for hours but it still doesn't work. I've modified the javascripts files by indicate the server's adress where the files are hosted. The only thing it does is display a never-ending spin. How the scripts can be corrected to load the images ?
Blogger Les p'tits philosophes 6/21/2008 8:58 AM  
We are also getting the 1px offset in Firefox 3 for mac. Has anyone been able to solve this issue.

If we do a style like:
#ShadowBox {margin-left:1px; margin-top:1px;}
It fixes the offset but it then is no good in other browsers.

Other then that absolutely fantastic little bit of code - so easy to implement.
Anonymous Anonymous 6/22/2008 10:12 PM  
Great job on the script! One observation on my install - I can click anywhere on the image (not just on the 'close' icon) to close it. Is this normal?
Anonymous Anonymous 6/23/2008 5:10 AM  
This comment has been removed by the author.
Anonymous Anonymous 6/23/2008 9:50 AM  
This comment has been removed by the author.
Anonymous Anonymous 6/23/2008 9:53 AM  
There is a problem with this script when you have two different files with the same name but in different dirs i.e. /my/dir/thumbs/main.jpg and /my/dir/large/main.jpg

The problem line is in the zoomPreload function, the change is as follows (any chance this could be merged in before I purchase for laurelandhardyarchive.com):

old code:

//if (imgPreload.src.indexOf(from.getAttribute("href").substr(from.getAttribute("href").lastIndexOf("/"))) == -1) {

new code:

if (imgPreload.src.indexOf(from.getAttribute("href")) == -1) {

Otherwise a great script... Thanks.

Also, it would be good to have a way to manually set the size that the image zooms from.
Anonymous Anonymous 6/23/2008 9:57 AM  
There's is a slight ERROR in the javascript file FancyZoomHTML.js

on line 115 the image tag needs to have a closer ">".
Blogger Martin Adams 6/24/2008 6:36 PM  
Anybody find a fix for the odd size behavior yet?

Great script, but even the use rel="zoom:800,487,screen-1" in the href section and id="screen-1" in the img section, the image size scales oddly!

please Cabel, be the great name you are... supply a fix!

Thanks
Anonymous Anonymous 6/25/2008 10:03 AM  
Hi,
at the moment there's an issue on this site's examples (with Firefox 2.0.0.14 and Mac OS X 10.4.8): Clicking the thumbs doesn't show more than a grey icon-like rectangle, the closing button, and the caption (if one). However, I could convince the script to start working by pressing shift when clicking.
Safari 2 works well, so does Opera 9.26.

Nevertheless, thanks for this sweet script! :)
Anonymous Anonymous 6/26/2008 6:27 AM  
I works fine. and look great..

but i you have to use it on image of diffence size i dont work. if have panorama image as the first image alle the rest of the images get wrong sizes.

see: www.hostbox.dk/test

it there any think i am doing wrong.
Anonymous Anonymous 6/27/2008 2:45 AM  
Fancy Zoom works great, but $39 PER SITE is too much. I agree with those who said a one-time fee for developers who could implement it on multiple sites would be better, like WebMenu from Coalesys.com does.
Anonymous Anonymous 6/27/2008 5:01 AM  
Your examples are awesome so i followed your instructions as stated but they do not work. Any thoughts?
Anonymous Anonymous 6/28/2008 2:00 PM  
For what it's worth...and with a couple modifications...I was able to get this script to work with an imagemap. It's not perfect, but it does the trick for our purposes. This is how we did it:

On line 85 change document.getElementsByTagName('a') to document.getElementsByTagName('area').

Around line 186 in the zoomIn() function...beginning with the conditional "if (from.childNodes[0].width)" comment out the entire conditional except these three lines:

startW = 50;
startH = 12;
startPos = findElementPos(from);

And from there, it should work just fine.

Great work Cabel!
Anonymous Anonymous 6/30/2008 4:28 AM  
I can't get the x or the shadow to show up. Maybe I am placing the images in the wrong place? I can't seem to figure out why its doing that.
Anonymous Anonymous 6/30/2008 7:23 PM  
IE 7 seems to be squishing my images. Is there a fix to this problem?
Anonymous Anonymous 7/02/2008 10:39 AM  
I like this plugin a lot! Just one question: all the images in the example are horizontal- no problem with vertical photos right?
Blogger Unknown 7/05/2008 5:27 AM  
Any way to get the magnifying glass to dynamicly generate over the thumbnail image? some of us don't have time to go through and put a magnifying glass in our images manually
Anonymous Anonymous 7/05/2008 11:11 AM  
Works on our site except when we have a slideshow function -- we happen to use Shutterbug by the folks at xtralean.com -- I guess a conflict in their scripts and yours? Too bad, when non-slideshow pic zoom they are very impressive.
Anonymous Anonymous 7/07/2008 6:13 PM  
Thanks for a great tool.
Anonymous Anonymous 7/07/2008 9:58 PM  
Very VERY nice effect... as long as CSS is turned ON. Have you checked how the page renders with CSS off? I thought it was just my clumsy implementation but I just looked at the Panic site with styles off and I see the same problem: the whole top part of the page is filled with the images that FancyZoom requires to build its effect. Not very friendly to anyone with accessibility issues, nor to search engines who will have to wade through a chunk of image and/or table data(!) before reaching the page content.

Yikes!

For comparison, I also checked the lighbox2 product page with styles off and saw none of these issues, so evidently they've addressed the problem.

I think this needs to be fixed before I'd be willing to part with cash, because it's an accessibility horror and kinda burps-up my fairly standards-compliant site.

I also couldn't help noticing that the Panic site is still built with tables. C'mon guys, lead from the front, yeah?
Anonymous Anonymous 7/08/2008 3:43 AM  
Hi! great work!

i'm having alot of truble loading the script without destroying my mootools effect. i'm using wordpress and the site looks like this :http://k-knudsen.dk/blogg/2008/07/08/paris-dag-3/

in the top that says "navigation" it's disabled everytime i add the body onload tag?

i have searched the net for hours now and follow "mike's" fix. but no luck :(

any idear what this could be ?


Thanks
Kenneth
Denmark
Anonymous Anonymous 7/08/2008 1:47 PM  
Man, if you guys have three websites a day to build, how do you have time to post all these comments whining about a product that you don't really need (since, as Cabel points out repeatedly, there are plenty of free alternatives) and can't afford.

If it's being used on a corporate site with a lot of images $39 is a pretty small price to pay. And those who do pay will make up for all of the weasels who will no doubt pirate his work.
Blogger BobH 7/08/2008 3:01 PM  
looks a lot like a FancyBox (http://fancy.klade.lv/)
Anonymous Anonymous 7/09/2008 8:18 AM  
Having an issue using IE7 on Vista operating system. The image opens in a new page, same window. Works fine with Firefox and am testing in Safari after download. My friends have tried it in IE7 on XP and all is ok.

Any advice?

Thanks,
T
Blogger Emmental, my dear Watson 7/09/2008 8:41 AM  
hi there, great script. but apple now loads html pages, not just jpegs, using a similar method. could you update your code to do that? i would buy it instantly.

thanks for your great work
Anonymous Anonymous 7/10/2008 2:06 PM  
Hello everybody !

For Mootools users, if you experiment problems with FancyZoom and the Mootool Tips plugin just follow this few thing to fix :

in FancyZoom.js
line 700 : rename the function getSize() to getSizeFancy()
line 159 : rename the call to this function from getSize() to getSizeFancy()

Here you go, no conflict anymore :)
Anonymous Anonymous 7/11/2008 3:40 AM  
I agree with inferno's comment above--there should be a way to open up the actual-sized image if you want. Like a link at the lower bottom right of the condensed image that says "See Full Size".

Otherwise, great app!
Blogger Unknown 7/11/2008 1:54 PM  
Very userful script
Anonymous Anonymous 7/13/2008 6:08 AM  
i really like this! how would I go about making the shadow larger?

thanks
Anonymous Anonymous 7/14/2008 4:25 PM  
I can't get it to do it exactly like yours does it. It goes to another page and brings up the image with a white background, instead of a black boxed in window like here.
And where do you pay the $39?
Anonymous Anonymous 7/15/2008 12:36 AM  
Trying to integrate this into a page but can't seem to get it to work, keep getting error on page "object expected" reffering to the line where the body tag is.

I have the code as:

(wouldn't let me put in the first bracket but I do have it in there)

body onload="setupZoom()">
div id="container">
....

I am doing this using the preview in Dreamweaver but I tried a basic page and can get it to work only without the icons in the corners of the pictures appearing. Don't know if that helps identify the possible problem?

Am i missing something obvious?

Please help!
Anonymous Anonymous 7/16/2008 10:15 PM  
Thanks for this great code! I have got it to work on our charity website, but for some reason the image borders and all the rest of the png files are not showing at all.. i'm wondering if i have placed them wrongly in the folders. Right now I have a main folder, where all the index etc files are. Then in that main folder I placed the js folder and also the global images folder. Should the images folder be placed somewhere else?
Thank you!
Blogger Kertuke 7/17/2008 4:21 PM  
Thanks for the nicest javascript image zoomer on the net!
Anonymous Anonymous 7/20/2008 4:03 PM  
Is this something you created?

jQuery.com offers the same thing without licensing fees...same naming as well.
Anonymous Anonymous 7/21/2008 6:16 AM  
Aweseome piece of code. Thanks!

BUGREPORT (and fix): There is a small display bug under Firefox 3.x, when the page is served as rather application/xhtml+xml than text/html: the two border of title tag when zooming are a bit too far from the legend, as on [0]. This is fixed by giving a specific CSS style to the table in div#ZoomCapDiv, namely the border-collapse property, and the padding of the left and right elements in function FancyZoomHTML.js:insertZoomHTML().
This is done in by placing the following excerpts at the relevant location in said function (i.e. after the creation of each tag variable):

inCapTable.setAttribute('style', 'border-collapse: collapse;');

inCapCol1.setAttribute('style', 'padding: 0');

inCapCol3.setAttribute('style', 'padding: 0');


ANOTHER: (which may be the one resulting in the dimension errors reported earlier), in function FancyZoom.js:zoomPreload(), the first condition:
if (imgPreload.src.indexOf(from.getAttribute("href").substr(from.getAttribute("href").lastIndexOf("/"))) == -1) {
assumes that from.getAttribute("href") contains at least one '/'. If it doesn't, from.getAttribute("href").lastIndexOf("/")) returns -1 which, when applied as an argument to substr() extracts the last character of the filename instead of the basename of the file. This can be fixed using a REGEX instead of the substr:
if (imgPreload.src.indexOf(from.getAttribute("href").replace(/^.*[\/\\]/g, '')) == -1)

(Both fixes work in Firefox 3.x)

[0] http://img213.imageshack.us/my.php?image=buglegendfancyzoomjk4.jpg
Anonymous Anonymous 7/25/2008 4:09 AM  
Cool script!
Any ideas how to use it with a image map?

Thanks, DS
Anonymous Anonymous 7/25/2008 10:12 AM  
Thanks for the script. Awesome and easy to implement! Everything seems to work fine, but none of the images show. The close box, shadows, none of that. Please help.

Trying to use the script here:
http://www.skylinetigers.com/new/photos.html
Blogger COE Newscenter 7/25/2008 10:18 AM  
Oh, I figured it out...got the answer at this website:
http://www.wpelements.com/2008/02/27/my-first-attempt-at-a-plugin-fancy-zoom/

You just need to open the FancyZoom.js file and change the location of the images folder on line 44.
Blogger COE Newscenter 7/25/2008 10:35 AM  
Congratulations, really nice effect. It caught my attention on McCain's election site. He hopefully purchased a license.
Anonymous Anonymous 7/26/2008 4:47 AM  
Awesome piece of code indeed.

I spotted and fixed two minor bugs, which may have been causing some of the glitches mentionned earlier. The following has been observed and fixed for Firefox 3.x and Epiphany 2.22.9 (Gecko 1.9) only, but may work as expected elsewhere.

First, the preload function is not properly triggered when the link is pointing to a relative URL. This is due to how the src of imgPreload is checked with the href attribute in FancyZoom.js:zoomPreload():
if (imgPreload.src.indexOf(from.getAttribute("href").substr(from.getAttribute("href").lastIndexOf("/"))) == -1) {
The indexOf() function returns -1 if pattern '/' is not found in the href attribute, which is obviously the case when it's a relative link to the same directory. Giving -1 as an argument to function substr() returns the first letter from the end of the href attribute which, of course can, never match imgPreload.src.
I fixed this by using a REGEX to extract the basename of the href attribute instead:
if (imgPreload.src.indexOf(from.getAttribute("href").replace(/^.*[\/\\]/g, '')) == -1) {
This seems to fix the bad dimensions symptoms described in earlier comments.

Second, there is a small HTML display bug in the caption label (#ZoomCapDiv). When the page is served with type text/html, everything's alright, but when it is served as application/xhtml+xml (that is real XHTML), there is a small space between the rounded borders around the caption and the caption itself. This is ugly. This can be fixed by adding a bit of CSS formatting when building the table. The following has to be put in FancyZoomHTML.js:insertZoomHTML() in the part that starts with comment "// CAPTION". This is three separate lines of code adding the proper style attribute to each of the elements that need fixing (easily identified by their javascript name).
inCapTable.setAttribute('style', 'border-collapse: collapse;');
inCapCol1.setAttribute('style', 'padding: 0');
inCapCol3.setAttribute('style', 'padding: 0');

Hope that helps. And thanks again for that! (:
Anonymous Anonymous 7/27/2008 4:54 PM  
Hi, great idea, but is ist possible to use it in a standard blogspot-account? I don't know how to upload the js-files, is it possible? Or is there any public hosting for these files so I can reference them in my blogger-template?

Many thanks in advance for answering :-)
Anonymous Anonymous 7/27/2008 8:47 PM  
I am having a nightmare trying to install FancyZoom into Dreamweaver, for a start I cant find the body id and its really beginning to drive me mad. I would like like to use this great script, can anyone give me some advice? I use standard HTML to design my pages but I could use PHP if its easier. Does anyone have some advice or steps they can email to me? Cheers
Anonymous Anonymous 7/28/2008 4:44 AM  
When I use fancyzoom.js in IE 6 and IE 7, the images don't show up as a fixed width, but rather, they resize based on the size of the browser. Is there a way to fix this so that they stay the same size no matter what (like they do in Firefox and Safari).
Blogger Unknown 7/28/2008 11:20 AM  
The issue with flash components overlapping the a FancyZoom can be fixed by adding the following to the flash insert tag:

param name="wmode" value="opaque"

http://www.bigroom.co.uk/blog/showing-dhtml-content-on-top-of-flash-content
Blogger Unknown 7/28/2008 11:22 AM  
Hi, Can any one see what is wrong with this:

www.bigblue-usvi.com/atest/55zoom.html

Doesn't seem to find the larger photo.

Thanks
Anonymous Anonymous 7/28/2008 4:16 PM  
Fantastico script..
Muchas gracias
Anonymous Anonymous 7/29/2008 9:17 AM  
Help - the script is working great except for the caption. It pops up in white but does not have a black backdrop - thus, it cannot be seen. Any idea what is going on?
Blogger Jocelyn Mozak 7/29/2008 11:21 PM  
AWESOME...but like someone else asked...how do I get this to work through blogger? I can't upload the files...please help
Blogger SpankyStokes 7/31/2008 8:58 PM  
I know this sounds crazy, but could this setup be used for a text or div element? I am thinking of clicking on a button to display an FAQ or directions for the page.
Blogger Kristy 8/01/2008 12:52 PM  
I tried this and had path issues. THe path for the border image (e.g. X) has a / at the beginning of it (/images-global/zoom...) and these images weren't found until I eliminated it. The same with the references to the .js files.

More troubling, the blowup flattened some images, not preserving proportions.
Anonymous Anonymous 8/02/2008 11:39 AM  
This is very nice !!!
Just making a good product gallery for my softwares !
Anonymous Anonymous 8/03/2008 4:08 AM  
Hi Cabel:

Excellent utility! Just the effect I wanted instead of opening a separate window [with the attend blockage by pop-up blockers] or using overlays like Lightbox [I don't like the dark full-page background effect nor the lack of a "wait" symbol/image].

Once I changed the image path in FancyZoom.js from "/images-global/zoom/" to "FancyZoom 1.1/images-global/zoom/" [the default path created when I unzipped "FancyZoom 1.1.zip"], the borders and wait symbol rendered correctly.

The utility works perfectly in Firefox 2.0.0.16, Opera 9.50, and Safari 3.1.1, all on Windows XP SP3.

The "close" button at the upper lefthand corner on zoomed images seems awkward for those coming from a non-Mac environment.

I read with interest the discussion regarding payment for commercial sites, etc., and the potential problems with monitoring licenses. Might I suggest you make your great utility "donation-ware" and set up a PayPal link [along with suggested amounts] on the page? The resultant individual donations may be small but even those with non-commercial sites will likely donate in appreciation. Just a thought.
Anonymous Anonymous 8/03/2008 7:43 AM  
very nice ,man .i like this

thanks
Anonymous Anonymous 8/03/2008 9:15 PM  
hi man!
great work,

but... I just write on a personal blog, and I know very very little programming. Couldnt you create a widget, so we can just click it and add it to our Blogger blogs??

You lost me at installation steps 2, and 4... no idea what you mean...

widget?

alex
Blogger Alexis 8/04/2008 6:03 AM  
very nice, beautiful work!
Anonymous Anonymous 8/04/2008 6:19 AM  
hi man!
great work,

but... I just write on a personal blog, and I know very very little programming. Couldnt you create a widget, so we can just click it and add it to our Blogger blogs??

You lost me at installation steps 2, and 4... no idea what you mean...

widget?

alex
Blogger Alexis 8/04/2008 7:11 AM  
In IE 6 and 7 the close 'X' does not function. Clicking on the picture does close.

Have you encountered this?
Blogger Unknown 8/04/2008 4:20 PM  
I would love it if it worked with reset.css :) For now, I just deleted the table-settings.. Isn't there any way for you to use divs instead of tables? :)
Anonymous Anonymous 8/06/2008 12:02 PM  
Any help with making FancyZoom work with a map (using the area tag) would be great!

Thanks for the awesome feature!
Anonymous Anonymous 8/06/2008 12:07 PM  
Fantasticooooooo! Wow it's incredible!! Simple, a very user friendly script, thaks a lot....
Blogger Andrea 8/07/2008 12:14 PM  
Yes, for me the picture my problems are with sizing
help, please..
Anonymous Anonymous 8/07/2008 10:53 PM  
I really dig FancyZoom, only it does not work on a horizontal scrolling web page. Well, it does, but not as desired - the zoomed image appears to the very left and not in the current viewport.
Anonymous Anonymous 8/08/2008 9:44 AM  
Hi, first of all congratulations for your FancyZoom project, it's cool… I like so much but, …

I am a drupal user and would like to use it on my drupal 6.x site, why not considering making a module for us drupal people!!
Would be very nice having it instead of the LightBox 2 project module from its web "stellapower.net"

Thank you so much,
drupal user.
Anonymous Anonymous 8/09/2008 6:08 AM  
I just needed such script because people use monitors with different resolution. I have chosen FancyZomm because it is simply and I like simply things :-). Thank you very much for it. Everyone can see how it works - and works excellent (!) - on my site: www.glowacki.art.pl

Best regards from Poland :-),
Anonymous Anonymous 8/10/2008 8:39 AM  
I'm a designer not a coder. I love this tool. One small question. Is there a way to have it always scroll in from and back to the center of the page? You can see my issue by checking out http://www.hotui.com
Anonymous Anonymous 8/10/2008 4:30 PM  
I love the look and feel this script adds to the page. Is there a way that the animation could always start and go back to the center of the screen? I'm having an issue with my left/right divs throwing off the scroll..
http://www.hotui.com

Any other ideas to make this look correct?
Anonymous Anonymous 8/10/2008 5:02 PM  
http://www.hotui.com - I think it is pretty possible, but soory, on your site you use FancyBox not FancyZoom :-).
Anonymous Anonymous 8/11/2008 1:05 AM  
For everyone who use FancyZoom: Dont forget to change the image paths – it is a line in FancyZoom.js file:

var zoomImagesURI = '/images-global/zoom/'; // Location of the zoom and shadow images

By the way, I made closebox.png blank transparent because the small cross at the upper lefthand corner on zoomed images does not suit me :-). Now, all is perfect: http://www.glowacki.art.pl/

Best regards,
Anonymous Anonymous 8/11/2008 1:26 AM  
hi,
Pretty good script i like it but i can't change the zoom size, my image is bigger than the image displayed in the box.

How can I change the size of the box or the size of the zoom?

I've tried to modify many things but I din't get it.

thank you
Blogger Unknown 8/11/2008 8:04 AM  
please please please please...
someby please make a widget for blogger...
I havent got the slightest idea how to install it on my blogger blog...

somebody should just create an automated widget installation tool


alex
Blogger Alexis 8/11/2008 8:23 AM  
To duncan.loire. Just change 90 for another value in a line of FancyZoom.js file:

var minBorder = 90; // Amount of padding between large, scaled down images, and the window edges
Anonymous Anonymous 8/11/2008 10:48 AM  
To alex. It is realy very easy to put this script in any webpage. Just open some html page on your local hard disk, for example in Notepad, and following by instruction make 3 and 4 step. Best regards,
Anonymous Anonymous 8/11/2008 10:58 AM  
I'm having the problem on Ff in Windows - where I will click on a thumbnail and all that comes up is a white square; if I close it and click again, it loads up (a couple of times it loads in a page by itself).

Then if I load click on another thumbnail, it loads the previous photo I clicked on. Do I need to reduce the file size of my jpg's (they are 640x480, 72dpi)?

Any ideas how to make it work more efficiently?
Blogger c 8/12/2008 9:19 PM  
When loading large images (over 400KB), FZ is lagging tremendously. Is there a way to fix this?
Anonymous Anonymous 8/12/2008 10:51 PM  
Pau tora mano !!!
Anonymous Anonymous 8/13/2008 1:22 PM  
http://i38.tinypic.com/24en70m.png

Whenever I come across a site where this (screenshot) happens, the javascript source always shows Fancyzoom installed. The problem is in FF3/Leopard with many extensions. I'll have to go through them all to find the conflict - but somebody who already has found the solution might save me the trouble. Thanks.
Anonymous Anonymous 8/13/2008 3:34 PM  
I have the same problem, I haven't found the solution yet.

I'm also having a lag issue with large images.
Anonymous Anonymous 8/13/2008 11:51 PM  
I do not have this problem but try to set 0px instead of 15px in FancyZoomHTML.js file:

inClosebox.style.left = '-15px';
inClosebox.style.top = '-15px';
Anonymous Anonymous 8/14/2008 3:06 AM  
Looks really good but I'm having a bit of trouble.. Basically I have a gallery with varying dimensions... When I click on the first picture it loads fine and the aspect ratio is perfect.... However when I click on a another picture after closing the first one... the second picture inherits the dimension/aspect ratio of the first picture... .Any ideas???

Thanks a bunch.
Anonymous Anonymous 8/14/2008 12:39 PM  
To james. FancyZoom will not make images bigger than they really are. They will be smaller, depend of line:

var minBorder = 90; // Amount of padding between large, scaled down images, and the window edges

in FancyZoom.js file.

So change 90 for another value - for example put there 0.

Best regards
www.glowacki.art.pl,
Anonymous Anonymous 8/15/2008 1:12 AM  
thanks a million for your work and share!

works perfect.

but just a question:
if i load a html-file in a DIV (AJAX)
and there inside is a gallery whit fancyzoom.
how i setup fancy-zoom in this case?

if i load the inside html-file whit the gallery alone, it works.
but inside the main-html in the DIV-container not!

thanks for any tips
Anonymous Anonymous 8/16/2008 6:27 AM  
That was great! Thanks
Anonymous Anonymous 8/18/2008 11:05 PM  
Bug report: In firefox, if there are line breaks within [a][img][/a] FancyZoom won't be able to find the image/width of the thumbnail (invents one of 50x13px).
Anonymous Anonymous 8/19/2008 10:31 AM  
This is a great little plugin that will add a lot of flare to any site. Thanks so much!
Blogger Unknown 8/19/2008 6:46 PM  
This is a great little plugin that will add a lot of flare to any site. Thanks so much!
Anonymous Anonymous 8/19/2008 6:46 PM  
Hi,

Really a great effect.
I have a problem with the themes WP premium on my blog http://blog.atelier76.ch.
fancyzoom once activated, the tab on the right disprait, do you have a solution?
If I find I am dedicated to doing.

by
nico
Blogger Unknown 8/21/2008 1:38 AM  

Post a Comment

 
 
 
   

   
       
 
 
 
   
Name:Cabel Maxfield Sasser
Job:Co-Founder, Panic Inc.
Location:Portland, OR
Email: