'posTop' Example : posTop « CSS « HTML / CSS

HTML / CSS » CSS » posTop 
'posTop' Example

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

    
      
      
Related examples in the same category
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.