Play Flash Games


© 2007 Red Computer

HTML Howto, CSS Howto, JavaScript Howto, PHP Howto, Windows Howto
Google

Get image size


To get the size of an image, just use width and height properties :
<script type="text/javascript">
function getDim(ID)
{
	myImage = document.getElementById(ID)
	alert(ID + " width : " + myImage.width + "px\n"+ ID +" height : " + myImage.height + "px")
}
</script>

Click the button below to see the result :

Jenny




Visitor's Comment
Comment no. 1
abc

From 163Öá³ÐÍø Date 15/05/50 Time 00.05 [222.46.18.34]

Post a Comment
Comment
Name :
E-mail :

HOME | HTML | CSS | JavaScript | PHP | XML | SQL | Virus Fix | Windows | Downloads | Links