Quote:
Code:
document.getElementById(id).height= (newheight) + "px";
document.getElementById(id).width= (newwidth) + "px";
|
You are appending 'px' to the height attribute, which it does not expect.
Try either of the following:
Using height/width attributes:
Code:
document.getElementById(id).height = newheight;
document.getElementById(id).width = newwidth;
Using CSS
Code:
document.getElementById(id).height = (newheight) + "px";
document.getElementById(id).width = (newwidth) + "px";
Also you can lose
if(document.getElementById)