漂浮的表单
代碼<!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;?width: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>
<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;?width: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>
?
轉載于:https://www.cnblogs.com/derrck/archive/2010/10/14/1851237.html
總結
- 上一篇: 当Grid的数据源是View时,如何使用
- 下一篇: jquery调用asp.net 页面后台