HTML CSS Reference/CSS Attributes and Javascript Style Properties/posTop

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

"posTop" Example

   <source lang="html4strict">
   

<head> <script language="JavaScript">

   function function1(){
       myDiv.style.posTop = 500; 
   }

</script> </head> <body>

    Click your mouse.

</body>


     </source>
   
  


"posTop" is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | | <base> | | |<basefont> |

| |
<body> |

| |<button> |

| |
|

| | <col> | | |<colgroup> <comment> | | |<custom>

| | |defaults | | | <dir> |

| |
|

| |

| | |<embed> <fieldset> | | | <form> | | |<frame> <frameset> | | |<head> <hn> |

| |
|

| |<iframe> <img> | | |<input type="button"> <input type="checkbox"> | | |<inputtype="file"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <input type="submit"> | | |<input type="text"> | | | <label> |

| |<legend>
  • | | |<link> <listing> | | |<marquee> <menu> | | |<meta> nextID | | |<nobr> <object> | | |
      <option> | | |

                               |
      |                |                                                       |
      |                |                          runtimeStyle                  |
      |                |                                                     |
      |                |<script>                        <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |style                                                    |
      |                |                                                  |
      |                |<tbody>                                                   |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "posTop" Syntax and Note

        <source lang="html4strict"> Note: JavaScript-only style properties Set the element Top position. Syntax:

        elementID.style.posTop = "value" document.all.elementID.style.posTop = "value"


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |<title>