'posTop' Example : posTop « CSS Attributes and Javascript Style Properties « HTML CSS Reference

Home
HTML CSS Reference
1.CSS Attributes and Javascript Style Properties
2.HTML Attributes Reference
3.HTML Tag Reference
HTML CSS Reference » CSS Attributes and Javascript Style Properties » posTop 
'posTop' Example

    
<head>
<script language="JavaScript">
    function function1(){
        myDiv.style.posTop = 500
    }
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#ccffcc; 
            position:absolute; 
            width:300;
            cursor:hand"
     onclick="function1()">
     Click your mouse.
</div>
</body>

    
      
      
Related examples in the same category
1.'posTop' Syntax and Note
2.'posTop' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.