I have an embarrassingly simple question: How can I display an image at double its size without hard coding the width and height attributes? Here's what I tried, but I ended up having to just enter 1000 for width and height. Is something wrong with my function? Thanks!

This will, of course, double the size of all images on the page. Maybe instead you'd like to make a class and assign it to all images that should be doubled or find some other way of selecting just those images. You could also set it up to double in size on mouseover (hover) or scale up with an animation (in some browsers) purely with css.