rdlareau
04-15-2014, 02:52 PM
I want to USE my computer, not play with it. When someone sends a photo in an email, I want to SEE the photo without having to scroll all over the place from here to kingdom come.
How can I set up my browser ( or gmail account) to AUTOMATICALLY let me just SEE the photo without having to jump through all kinds of hoops (clicking, dragging, changing scripts, jumping up and down, etc...!)
Does your script handle that somehow all the time, so that, NEXT time I go to my gmail I can count on the images JUST WORKING, and not have to go through all these gyrations ALL. OVER. AGAIN.?
One obvious mistake is:
<script type=""text/javascript>
window.onload = resizeImg(document.body.clientHeight - 100, document.body.clientWidth - 100);
window.onresize = resizeImg(document.body.clientHeight - 100, document.body.clientWidth - 100);
function resizeImg(width, height) {
document.getElementById("img").style.height = height;
document.getElementById("img").style.width = width;
}
</script>
...Also, when do you want it to resize to it's original size BTW? :rolleyes:
...Maybe you want a button..or what...If you're on the decision already, just use the image's id:
document.getElementById("img").style.height = '300px';
document.getElementById("img").style.width = '300px'
Hope that helps :)
How can I set up my browser ( or gmail account) to AUTOMATICALLY let me just SEE the photo without having to jump through all kinds of hoops (clicking, dragging, changing scripts, jumping up and down, etc...!)
Does your script handle that somehow all the time, so that, NEXT time I go to my gmail I can count on the images JUST WORKING, and not have to go through all these gyrations ALL. OVER. AGAIN.?
One obvious mistake is:
<script type=""text/javascript>
window.onload = resizeImg(document.body.clientHeight - 100, document.body.clientWidth - 100);
window.onresize = resizeImg(document.body.clientHeight - 100, document.body.clientWidth - 100);
function resizeImg(width, height) {
document.getElementById("img").style.height = height;
document.getElementById("img").style.width = width;
}
</script>
...Also, when do you want it to resize to it's original size BTW? :rolleyes:
...Maybe you want a button..or what...If you're on the decision already, just use the image's id:
document.getElementById("img").style.height = '300px';
document.getElementById("img").style.width = '300px'
Hope that helps :)