The latest version of my plugin is available at (those on Google Pages
are no longer updated):
http://www.texotela.co.uk/code/jquery/jQIR/
I use 'format' first as the second parameter 'path' is now optional
(leave it blank to have no path prepended).
I don't use image.onload due to it not firing in IE with cached images
and appending a random string to the end would mean the server is hit
every time the page is reloaded.
Screen readers may not download images (I don't have one to test
this), but applying an alt to the image tag means that the heading can
still be interpreted. I doubt any screen readers ignore alt attributes
in image tags (I would consider lack of support a major flaw).
I don't think using image creation outside the loop is needed though.
I have seen no benefits to its use. Plus you have an image object that
is not being used (as you are cloning it each time), although that is
probably cleaned up by the browser.
You could always use if(document.images){...} to see if the browser
supports images anyway.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/