SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
var curHeight; var curWidth; function getImgSize(imgSrc) { var newImg = new Image(); newImg.src = imgSrc; curHeight = newImg.height; curWidth = newImg.width; }