[Pro] LazyLoad JQuery

Okay, you can restrict it to only the large images hidden inside the Carousel if you like (actually, you can get really fine-grained about this because of how the effect gets attached to images).

Where the code reads $$('img'), you simply include the ID of your Carousel. If you click on the main Carousel element on your page, you’ll see its ID in the Name field in the Inspector. The Carousel Action uses that ID as the base for the ID of the main outer DIV it creates as the parent element for the effect.

So in your example page above, the ID of the main Carousel is pgallery1, so the ID you want is carousel_pgallery1.

Make your accessor code read $$('#carousel_pgallery1 img') and now the lazy-loader will only affect the large images inside your carousel.

If you also wanted the thumbnail images to be lazy-loaded, you could make the accessor code $$('#carousel_pgallery1 img, .controls img'). Nothing else on the page will be affected.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options