過去にそのようなコードを書いたのはもっと面倒だったことを覚えていますが、今ではjQueryを持っている方がはるかに簡単です。
<script type = "text/javascript" src = "js/jquery-1.7.2.min.js"> </script> <script type = "text/javascript"> $(function(){$(){windo()scroll(function(){var top = $(window).scrolltop()+200; var left = $()+$()。 $( "#editinfo")。 }); </script> <div id = "editinfo" style = "float:left; width:300px; background-color:#ccc; position:aspolute; top:200px;"> <div> username:<input type = "text =" text "/> </div> <div>パスワード:<入力タイプ="テキスト "/> <入力= < type = "text"/> </div> <div> <入力タイプ= "ボタン"値 "value =" save "/> </div> </div> </div> </div>上記のDIV実装コード[推奨]は、エディターが共有するコンテンツ全体です。私はそれがあなたに参照を与えることができることを願っています、そしてあなたがwulin.comをもっとサポートできることを願っています。