Resizing image using Javascript in IE and FireFox
A couple of weeks ago, I wrote the following code to resize an image with javascript: imgnode.style.width= parseInt(imgnode.style.width) + 20; imgnode.style.height = parseInt(imgnode.style.width) + 20; This works perfect in IE. But does not work at all in FireFox. Then I changed it to: var width = parseInt(imgnode.style.width); var height = parseInt(imgnode.style.height); width = width – [...]
