just define an empty <style> section in the head and do smth like that in your onslide func:
var style = document.getElementsByTagName('style')[0];
style.innerHTML = '.imageClass { height: ' + height + '%; width: ' + width + '%; }';
i don't know if it works in all browsers ... i just tested altering the style tag in firefox ... and the changes affected to the page
only a thought that crossed my mind...
brgds sigi
2006/1/31, Alex Duffield <[EMAIL PROTECTED]>:
Cool, thanks, but they are just doing a while loop aswell. And as for a iPhoto like scale they are missing it a bit. In his (her?) example the images all scale up to the top left, but in iPhoto, the images scale from there center, until there is enough room for one more or one less column. (Take a look in my example I posted)However that site did point out a bug in Mac Firefox that is probably responsible for some of the stuttering I am seeing as I am using Mac Firefox. It runs a lot smother in Safari and I tested it in IE Windows and the scaling was fairly smooth, but I wil need to do a test and see how it works with 100+ images..I acutely switched over to using ".each" instead of the while loop and I "Think" it is a little better, but I know that Thomas Fuchs is doing the same sort of thing in fluxiom ( http://www.fluxiom.com) and based on the video clip there he is getting WAY better performance than the method I am doing...Any how, if any one can offer some advice on optimizing this I would be for ever in your debt!Cheers.______________________________________________________________________
Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com
On 31-Jan-06, at 12:43 AM, Timo Hoepfner wrote:Hi Alex,I cannot help you with the details, but here's a description on how to do iPhoto like image resizing with scriptaculous:Hope this helps,TimoAm 31.01.2006 um 05:23 schrieb Alex Duffield:I am building a iPhoto like (Read rip-off) interface for thumbnails and I am having a couple problems that I thought some one on the list might be able to assist me on ...first off here is the page: http://v4.incontrolsolutions.com/galltest/
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
Mit freundlichen Grüßen
Siegfried Puchbauer
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
