I know how to resize an image with JS... but im wondering how i would go about overwriting the original image with the newely resized image... if that makes sense lol.
Thanks in advance, Ash
I know how to resize an image with JS... but im wondering how i would go about overwriting the original image with the newely resized image... if that makes sense lol.
Thanks in advance, Ash
document.getElementById('id_of_image').src='url_of_new_image';
Thanks very muchly, will try that out![]()
Or document.images['id_of_image'].src = "url_of_new_image"; for slightly better support in old browsers and less to type![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks