Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <script language="javascript">
- function StartUp(){
- var theBody = document.getElementsByTagName("body")[0];
- var rButton = document.createElement('img');
- rButton.src='images/button.gif';
- alert(rButton.height);
- theBody.appendChild(rButton);
- alert(rButton.height);
- };
- </script>
- </head>
- <body bgcolor="#12121F" text="#FFFFFF" onload="StartUp()">
- </body>
- </html>
How can I find out those properties of an image before it is printed to the screen? I need them for some scaling and other stuff.
thanks in advance.