Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q427, Tuesday May 15, 2007 at 10:42:31

You are here: irt.org | About | Feedback | 4579 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q427

Sent by
Mike on Tuesday May 15, 2007 at 10:42:31

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
var newImagePath = "myLargerImage.jpg";

// create a temp copy of the image to get the size (necessary for IE)
tempImage = document.createElement('img');
tempImage.setAttribute('src', newImagePath);

mainImage.setAttribute('src', newImagePath);
mainImage.setAttribute('width', tempImage.width);
mainImage.setAttribute('height', tempImage.height);




Other feedback on 'irt.org FAQ Knowledge Base Q427' - show all

©2018 Martin Webb