'pixelLeft' Example : pixelLeft « CSS « HTML / CSS

HTML / CSS » CSS » pixelLeft 
'pixelLeft' Example

    
<html>
<head>
<script language="JavaScript">
    function function1(){
        document.all.myDiv.style.pixelLeft = 500 
    
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#ccffcc; 
            position:absolute; 
            width:200;
            cursor:hand"
     onclick="function1()">
     Click on this div element to set pixelLeft to 500.
</div>
</body>
</html>

    
      
      
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.