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

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

"pixelLeft" Example

   <source lang="html4strict">
   

<html> <head> <script language="JavaScript">

   function function1(){
       document.all.myDiv.style.pixelLeft = 500 
   } 

</script> </head> <body>

    Click on this div element to set pixelLeft to 500.

</body> </html>


     </source>