zoukankan      html  css  js  c++  java
  • 漂浮的表单

    代码
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript">
      function loadmsg()
      {
        document.getElementById(
    "msgid").style.top=
         document.documentElement.scrollTop
    +(document.documentElement.clientHeight-document.getElementById("msgid").offsetHeight)/2+"px"
        document.getElementById(
    "msgid").style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("msgid").offsetWidth+"px";
      }
    window.onscroll
    =loadmsg;
    window.onresize
    =loadmsg;
    window.onload
    =loadmsg;
    </script>
    </head>

    <body>
    <div style="height:1500px; 1500px;">
      
    <div style="height:200px;position:absolute" id="msgid"><script type='text/javascript' charset='utf-8' src='checkinform.js'></script><form action='' method='post' name='inform' id='inform' onsubmit='return  checkinform();'><input  type='hidden' name='record_type' value='104' /><input  type='hidden' name='Refer_url' value='m.huadong.cn/index.html'/>姓名:<input name='namex' type='text' id='name' class='input' />手机:<input name='mobile' type='text' id='mobile' class='input' /><input name="Submit" type="image" value="submit_code" src="images/sq.jpg" alt="免费索取资料" class="input2"/ ></form></div>
    </div>
    </body>
    </html>
  • 相关阅读:
    心得
    第七章
    第六章
    第五章
    第四章
    第三章
    第二章
    第一章
    实验2(4)
    实验2(3)
  • 原文地址:https://www.cnblogs.com/derrck/p/1851237.html
Copyright © 2011-2022 走看看