HTML/CSS/CSS Attributes and Javascript Style Properties/pixelBottom

Материал из Web эксперт
Перейти к: навигация, поиск

"pixelBottom" Example

    
<html>
<head>
<script language="JavaScript">
    function function1(){
        document.all.myDiv.style.pixelBottom = 500 
    } 
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#EEEEEE; 
            position:absolute; 
            width:200;
            cursor:hand"; 
     onclick="function1()">
     Click this div element to send it to 500 px from the bottom.
</div>
</body>
</html>