首页 > web前端 > html教程 > html 浮动窗口_html/css_WEB-ITnose

html 浮动窗口_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-24 11:48:34
原创
1607 人浏览过

		<input type="text" size="84" id="receiver">		<input type="button" value="批量输入" onclick="createInputDialog(this,'1','')" name="riskbehavior">	
登录后复制


function createInputDialog(obj,id,value){      var div=document.getElementById("editBehaviorDiv");      if(div!=null)          document.body.removeChild(div);      div = document.createElement("div");       div.id="editBehaviorDiv";      div.style.position='absolute';      var op=getoffset(obj);     div.style.top= "100px";      div.style.left= (document.body.clientWidth - 374)/2.0 + "px";      div.style.zIndex =100;      div.style.backgroundColor='#ecf1f6';      div.style.border="1px solid #666";      //div.className="td1";      div.innerHTML="<textarea name="behaviorValue" id="behaviorValue" cols="50" rows="8">"+value+      "</textarea><br><input type="button" value="修改" onclick="\"saveBehaviorname(this.parentNode,'"+id+"')\"">"+      "<input type="button" value="取消" id="cancelButton" onclick="document.body.removeChild(this.parentNode);">";      document.body.appendChild(div);      document.all.behaviorValue.focus();  }   function saveBehaviorname(obj,id){    var behaviorValue = document.all.behaviorValue.value;    var idsArray = new Array(); //定义一数组     idsArray = behaviorValue.split("\n"); //字符分割    var idsString = "";    for (i = 0; i   <br> 效果如图:  <p></p>  <p><br> </p> 
登录后复制
相关标签:
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
Vim 如何自动调整NertTree窗口的大小?
来自于 1970-01-01 08:00:00
0
0
0
窗口中的内容溢出阻止滚动并隐藏新内容
来自于 1970-01-01 08:00:00
0
0
0
vim - 如何调出隐藏窗口?
来自于 1970-01-01 08:00:00
0
0
0
javascript - 怎么关闭js中新打开窗口的js效果
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板