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 ?? Link to comment https://forums.phpfreaks.com/topic/101982-calling-on-variables/ Share on other sites More sharing options...
adam291086 Posted April 20, 2008 Author Share Posted April 20, 2008 anyone? Link to comment https://forums.phpfreaks.com/topic/101982-calling-on-variables/#findComment-521931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.