Google Gadgets and Javascript
I have been making updates to my Panoramic Photo Gallery: https://sites.google.com/site/ericballpanorama/ both adding newly stitched panoramas and revising older ones adding metadata and a watermark. Now I've reworked my main page to list the panoramas by location rather than in a simple ToC. At the bottom I've linked one of the panoramas, but what I'd really like to do is make that a slide show or a random panorama. With a normal site this would all be done in Javascript, but as this is Google, it's gotta be a Google Gadget.
Actually, in this case the gadget is mostly just a wrapper for the Javascript. I have a simple working gadget which randomly displays one panorama from a hard coded list. The problem is gadgets typically have a fixed height and the height of my panoramas varies. There's a gadget method which can be used to adjust the height, but I'm fighting with a the image being loaded asynchronously and therefore not knowing the height at the time the gadget is loaded.
1 Comment
Recommended Comments