![]() |
|
Sliding photo sizes up onclick - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Sliding photo sizes up onclick (/thread-322.html) |
Sliding photo sizes up onclick - Heilemann - 2006-02-23 Just thought this might be of interest: http://www.hotwired.com/webmonkey/06/08/index2a.html Sliding photo sizes up onclick - Chilifrei64 - 2006-02-23 Kinda neat.. most of this premade js stuff is really very easy to integrate into zenphoto. So just incase anybody is interested: http://beta.chilifrei.net/zenlive The only thing with this is there is no way to make this use the cache engine in zenphoto because of how the js is coded. Unless you hack the core files of zen, atleast that is my take on it because if you use the printImageThumb() then you can not put this in the tags which the js needs to get its properties. Right now the demo I have uses the full image but scales it down using height/width in the tags. so it not only makes it slower but doesnt use the cache engine. Oh well, i just thought I would try it out. Sliding photo sizes up onclick - trisweb - 2006-02-24 Using the cache is very possible. It's all in the URLs. When you resize the image to a certain size in the javascript, just change its src to /albumname/image/480/image.jpg instead of /albumname/image/thumb/image.jpg. The new image will load (and the new size will be created and cached if it hasn't already been). You may have to bypass the template tags to do this and do some direct calls to the objects, which is cool. Eventually some convenient things might be added as functions to make scripting easier. |