[jQuery] Re: Adding IMG attributes

2008-12-01 Thread Andy Matthews
The best way (IMO) to know if they're working is to view this site in Firefox with the Web Developers Toolbar. Under the View Source button on the toolbar is an option for "view generated source". This will show you the results of the page after any JavaScript has been executed. It'll display new

[jQuery] Re: Adding IMG attributes

2008-11-28 Thread Jeffrey Kretz
Not exactly. The $(document).ready function fires when the DOM has been fully built, so not all the images will be loaded at that time. You could bind to the images load method as well. function fixDimensions() { var img = $(this); img.attr('width',img.width()); img.attr('height',img.h