Hi String, thank you for your answer! Yes, you're right, that I didn't check a situation, where the width and the height of a photo would be equal. I've corrected this in a new version. And the second thing is, that the elements, I 'm referring to as "photo" and "pic" are different. The first one is a div, the second one is an image.
I've published a new version of the gadget here: http://hosting.gmodules.com/ig/gadgets/file/101173493684185538776/hermannsphotos.xml I hope, you could help me. Thank you in advance! Regards, Hermann 2009/6/16 String <[email protected]> > > Hi Hermann, > > The major thing that jumps out at me from your code snippet is that > early on you're referring to the photo element by _gel("photo"), then > later you use document.images["pic"]. Are these the same HTML element? > > Minor(?) thing: your resizing tests won't work for any square photos > (H = W). > > Could you post a link to the live gadget instead of a snippet? There's > lots that we can't tell from just looking at this (HTML, photo > dimensions, other JS) that could be influencing this. Plus it's vastly > easier to debug a real example. > > String > [skipped...] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
