Quick Search:
 
 JavaScript: Show basic image info Jump to:  
Category: >> JavaScript >> Show basic image info  

<< lastnext >>

Snippet Name: Show basic image info

Description: Display basic information about an image .

Comment: (none)

Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: March 01st, 2009

<html>
<head>
<title>Image Information</title>
</head>
<body>
< s c r ipt type="text/JavaScript">
VAR theImage = NEW Image();
theImage.src = "http://www.somedomain.com/myimage.gif";
document.WRITE('<img src=' + theImage.src + '><br><br>');
document.WRITE('Image Name : ' + theImage.src + '<br>');
document.WRITE('Image Width : ' + EVAL(theImage).width + '<br>');
document.WRITE('Image Height : ' + EVAL(theImage).height + '<br>');
</script>
</body>
</html>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org