adam291086 Posted April 20, 2008 Share Posted April 20, 2008 i have this script var ImgWidth; var ImgHeight; function dimension (imagename) { var myImage = new Image(); myImage.name = "someimg.jpg"; myImage.onload = getWidthAndHeight; myImage.src = "images/Pic/"+imagename; function getWidthAndHeight() { ImgWidth = this.width; ImgHeight = this.height; } } how can i call ImgWidth and ImgHeight within another function ?? Quote Link to comment Share on other sites More sharing options...
adam291086 Posted April 20, 2008 Author Share Posted April 20, 2008 anyone? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.