Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- ,imagetool: function(settings) {
- var foo = $.extend({}, defaultSettings, settings);
- settings = $.extend({}, defaultSettings, settings);
- return this.each(function() {
- var image = $(this);
- image.css({display: "none"});
- image.load(function() {
- alert("image is " + this.width + " by " + this.height + " pixels in size."); //this don't work on first page load but does on relaod
- settings.imageWidth = this.width;
- settings.imageHeight = this.height;
- $(this).setup(settings);
- });
- }); // end this.each
- }
- ...
- so image doesn't appear on image load, but does on reload :/
Add Comment
Please, Sign In to add comment