There is a window.load event, and that's what you want to use:
http://docs.jquery.com/Events#load.28_fn_.29
So you want:
$(window).load(function() {
// My stuff to do once all images are loaded...
});
--Erik
On 6/14/07, GianCarlo Mingati [EMAIL PROTECTED] wrote:
Hi,
the question may not
The image itself will also have a load event if your creating it
dynamically:
$('img src=test.jpg alt= /
').appendTo(document.body).bind(load, function() { ... });
The caveat, though, is that I'm not sure when/if the event gets fired
if the image is cached. Maybe someone with more experience
Ooh. So, this would let jQuery get the width of an image, even if that image
doesn't have an /explicit/ width attribute set?
Sorry if I'm being dense, but I wasn't quite following the question above,
and this would solve a problem I'm having with my figures plugin.
On 6/14/07, Erik Beeson [EMAIL
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
Hi all.
It works now, thank you very much, but why couldn't I put only one
istance per page?
Try yourself if you got the time. I'll work on that too.
Grazie!
GC
On Jun 14, 8:09 pm, Jörn Zaefferer
GianCarlo Mingati ha scritto:
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html
Hi all.
It works now, thank you very much, but why couldn't I put only one
istance per page?
Try yourself if you got the time. I'll work on that too.
Grazie!
Ciao
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-multi.html
Hi, that's what happens if i put more than one 'instance' of
slideviewer into a page.
The 'load' trick worked but now i think that despite renato's
suggestion (if you look at the plugin the code is wrapped
6 matches
Mail list logo