画像名.height document.images[0].height;
<img src="images/sakura.jpg" width="250" height="180" name="myPic" alt="京都の桜"> <script type="text/javascript> <!-- h = document.myPic.height; document.write("画像の高さは " + h + "ピクセルです"); //--> </script>
Top / Home / Index / Next