!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 title 自定义弹出对话框 /title style type="text/css" *{margin:0;padding:0
if ( !document.getElementById("SpID"))
{
divSp.setAttribute("id", "SpID");
divSp.style.position="absolute";
divSp.style.padding="10px";
divSp.style.width="10px";
divSp.style.height="10px";
divSp.style.zIndex="5000";
divSp.style.top=evnt.clientY+document.body.scrollTop+document.documentElement.scrollTop+"px";
divSp.style.left=evnt.clientX+document.body.scrollLeft+document.documentElement.scrollLeft+"px";
divSp.style.border="1px dotted #576999";
divSp.style.backgroundColor="#E4E7EF";
divSp.innerHTML="";
document.body.appendChild(divSp);
OpenDiv();
}
if ( !document.getElementById("SubInfo"))
{
btnSub.setAttribute("id", "SubInfo");
btnSub.type="button";
btnSub.style.width="50px";
btnSub.style.position="absolute";
btnSub.style.top="80%";
btnSub.style.left="50%";
btnSub.value="提交";
btnSub.onclick=function(){
//document.getElementById("SpIDs").innerHTML=document.getElementById("music").value;
//CloseDiv();
document.body.removeChild(divSp);
};
document.getElementById("SpID").appendChild(btnSub);
}
}
function OpenDiv()
{
var divopen = document.getElementById("SpID");
if ( divopen.offsetWidth {
divopen.style.width=divopen.offsetWidth + 5 + "px";
}
if ( divopen.offsetHeight 400)
{
divopen.style.height=divopen.offsetHeight + 1 + "px";
}
act=setTimeout("OpenDiv()", 20);
if(divopen.offsetHeight > 300 && divopen.offsetWidth > 400)
{
clearTimeout(act);
}
}
function CloseDiv()
{
var divopen = document.getElementById("SpID");
if ( divopen.offsetWidth >= 0 )
{
//divopen.style.width=5 - divopen.offsetWidth + "px";
}
if ( divopen.offsetHeight >= 0 )
{
divopen.style.height=divopen.offsetHeight - 2 + "px";
}
setTimeout("OpenDiv()", 2);
}
<script><br /> alert(document.getElementById("btnValue").offsetWidth);<br /> </script>

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

mPDF
mPDF是一个PHP库,可以从UTF-8编码的HTML生成PDF文件。原作者Ian Back编写mPDF以从他的网站上“即时”输出PDF文件,并处理不同的语言。与原始脚本如HTML2FPDF相比,它的速度较慢,并且在使用Unicode字体时生成的文件较大,但支持CSS样式等,并进行了大量增强。支持几乎所有语言,包括RTL(阿拉伯语和希伯来语)和CJK(中日韩)。支持嵌套的块级元素(如P、DIV),

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver Mac版
视觉化网页开发工具