问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

求js这段代码

发布网友 发布时间:2022-04-24 13:20

我来回答

2个回答

热心网友 时间:2022-04-24 14:50

////////////////////////////////////////////////guang gao
document.writeln("<script language=Jscript>");
document.writeln("<!--");
document.writeln("var x0=0,y0=0,x1=0,y1=0;");
document.writeln("var offx=6,offy=6;");
document.writeln("var moveable=false;");
document.writeln("var hover=\'red\',normal=\'slategray\';\/\/color;");
document.writeln("var index=10000;\/\/z-index;");
document.writeln("\/\/开始拖动;");
document.writeln("function startDrag(obj)");
document.writeln("{");
document.writeln(" if(event.button==1)");
document.writeln(" {");
document.writeln(" \/\/锁定标题栏;");
document.writeln(" obj.setCapture();");
document.writeln(" \/\/定义对象;");
document.writeln(" var win = obj.parentNode;");
document.writeln(" var sha = win.nextSibling;");
document.writeln(" \/\/记录鼠标和层位置;");
document.writeln(" x0 = event.clientX;");
document.writeln(" y0 = event.clientY;");
document.writeln(" x1 = parseInt(win.style.left);");
document.writeln(" y1 = parseInt(win.style.top);");
document.writeln(" \/\/记录颜色;");
document.writeln(" normal = obj.style.backgroundColor;");
document.writeln(" \/\/改变风格;");
document.writeln(" obj.style.backgroundColor = hover;");
document.writeln(" win.style.borderColor = hover;");
document.writeln(" obj.nextSibling.style.color = hover;");
document.writeln(" sha.style.left = x1 + offx;");
document.writeln(" sha.style.top = y1 + offy;");
document.writeln(" moveable = true;");
document.writeln(" }");
document.writeln("}");
document.writeln("\/\/拖动;");
document.writeln("function drag(obj)");
document.writeln("{");
document.writeln(" if(moveable)");
document.writeln(" {");
document.writeln(" var win = obj.parentNode;");
document.writeln(" var sha = win.nextSibling;");
document.writeln(" win.style.left = x1 + event.clientX - x0;");
document.writeln(" win.style.top = y1 + event.clientY - y0;");
document.writeln(" sha.style.left = parseInt(win.style.left) + offx;");
document.writeln(" sha.style.top = parseInt(win.style.top) + offy;");
document.writeln(" }");
document.writeln("}");
document.writeln("\/\/停止拖动;");
document.writeln("function stopDrag(obj)");
document.writeln("{");
document.writeln(" if(moveable)");
document.writeln(" {");
document.writeln(" var win = obj.parentNode;");
document.writeln(" var sha = win.nextSibling;");
document.writeln(" var msg = obj.nextSibling;");
document.writeln(" win.style.borderColor = normal;");
document.writeln(" obj.style.backgroundColor = normal;");
document.writeln(" msg.style.color = normal;");
document.writeln(" sha.style.left = obj.parentNode.style.left;");
document.writeln(" sha.style.top = obj.parentNode.style.top;");
document.writeln(" obj.releaseCapture();");
document.writeln(" moveable = false;");
document.writeln(" }");
document.writeln("}");
document.writeln("\/\/获得焦点;");
document.writeln("function getFocus(obj)");
document.writeln("{");
document.writeln(" if(obj.style.zIndex!=index)");
document.writeln(" {");
document.writeln(" index = index + 2;");
document.writeln(" var idx = index;");
document.writeln(" obj.style.zIndex=idx;");
document.writeln(" obj.nextSibling.style.zIndex=idx-1;");
document.writeln(" }");
document.writeln("}");
document.writeln("\/\/最小化;");
document.writeln("function min(obj)");
document.writeln("{");
document.writeln(" var win = obj.parentNode.parentNode;");
document.writeln(" var sha = win.nextSibling;");
document.writeln(" var tit = obj.parentNode;");
document.writeln(" var msg = tit.nextSibling;");
document.writeln(" var flg = msg.style.display==\"none\";");
document.writeln(" if(flg)");
document.writeln(" {");
document.writeln(" win.style.height = parseInt(msg.style.height) + parseInt(tit.style.height) + 2*2;");
document.writeln(" sha.style.height = win.style.height;");
document.writeln(" msg.style.display = \"block\";");
document.writeln(" obj.innerHTML = \"0\";");
document.writeln(" }");
document.writeln(" else");
document.writeln(" {");
document.writeln(" win.style.height = parseInt(tit.style.height) + 2*2;");
document.writeln(" sha.style.height = win.style.height;");
document.writeln(" obj.innerHTML = \"2\";");
document.writeln(" msg.style.display = \"none\";");
document.writeln(" }");
document.writeln("}");
document.writeln("\/\/关闭;");
document.writeln("function cls(obj)");
document.writeln("{");
document.writeln(" var win = obj.parentNode.parentNode;");
document.writeln(" var sha = win.nextSibling;");
document.writeln(" win.style.visibility = \"hidden\";");
document.writeln(" sha.style.visibility = \"hidden\";");
document.writeln("}");
document.writeln("\/\/创建一个对象;");
document.writeln("function xWin(id,w,h,l,t,tit,msg)");
document.writeln("{");
document.writeln(" index = index+2;");
document.writeln(" this.id = id;");
document.writeln(" this.width = w;");
document.writeln(" this.height = h;");
document.writeln(" this.left = l;");
document.writeln(" this.top = t;");
document.writeln(" this.zIndex = index;");
document.writeln(" this.title = tit;");
document.writeln(" this.message = msg;");
document.writeln(" this.obj = null;");
document.writeln(" this.bulid = bulid;");
document.writeln(" this.bulid();");
document.writeln("}");
document.writeln("\/\/初始化;");
document.writeln("function bulid()");
document.writeln("{");
document.writeln(" var str = \"\"");
document.writeln(" + \"<div id=xMsg\" + this.id + \" \"");
document.writeln(" + \"style=\'\"");
document.writeln(" + \"z-index:\" + this.zIndex + \";\"");
document.writeln(" + \"width:\" + this.width + \";\"");
document.writeln(" + \"height:\" + this.height + \";\"");
document.writeln(" + \"left:\" + this.left + \";\"");
document.writeln(" + \"top:\" + this.top + \";\"");
document.writeln(" + \"background-color:\" + normal + \";\"");
document.writeln(" + \"color:\" + normal + \";\"");
document.writeln(" + \"font-size:12px;\"");
document.writeln(" + \"font-family:Verdana;\"");
document.writeln(" + \"position:absolute;\"");
document.writeln(" + \"cursor:default;\"");
document.writeln(" + \"border:2px solid \" + normal + \";\"");
document.writeln(" + \"\' \"");
document.writeln(" + \"onmousedown=\'getFocus(this)\'>\"");
document.writeln(" + \"<div \"");
document.writeln(" + \"style=\'\"");
document.writeln(" + \"background-color:\" + normal + \";\"");
document.writeln(" + \"width:\" + (this.width-2*2) + \";\"");
document.writeln(" + \"height:20;\"");
document.writeln(" + \"color:#ebf1ff;\"");
document.writeln(" + \"\' \"");
document.writeln(" + \"onmousedown=\'startDrag(this)\' \"");
document.writeln(" + \"onmouseup=\'stopDrag(this)\' \"");
document.writeln(" + \"onmousemove=\'drag(this)\' \"");
document.writeln(" + \"ondblclick=\'min(this.childNodes[1])\'\"");
document.writeln(" + \">\"");
document.writeln(" + \"<span style=\'width:\" + (this.width-2*12-4) + \";padding-left:3px;\'>\" + this.title + \"<\/span>\"");
document.writeln(" + \"<span style=\'width:12;border-width:0px;color:#ebf1ff;font-family:webdings;\' onclick=\'min(this)\'>0<\/span>\"");
document.writeln(" + \"<span style=\'width:12;border-width:0px;color:#ebf1ff;font-family:webdings;\' onclick=\'cls(this)\'>r<\/span>\"");
document.writeln(" + \"<\/div>\"");
document.writeln(" + \"<div style=\'\"");
document.writeln(" + \"width:100%;\"");
document.writeln(" + \"height:\" + (this.height-20-4) + \";\"");
document.writeln(" + \"background-color:#ebf1ff;\"");
document.writeln(" + \"line-height:16px;\"");
document.writeln(" + \"word-break:break-all;\"");
document.writeln(" + \"padding:3px;\"");
document.writeln(" + \"\'>\" + this.message + \"<\/div>\"");
document.writeln(" + \"<\/div>\"");
document.writeln(" + \"<div style=\'\"");
document.writeln(" + \"width:\" + this.width + \";\"");
document.writeln(" + \"height:\" + this.height + \";\"");
document.writeln(" + \"top:\" + this.top + \";\"");
document.writeln(" + \"left:\" + this.left + \";\"");
document.writeln(" + \"z-index:\" + (this.zIndex-1) + \";\"");
document.writeln(" + \"position:absolute;\"");
document.writeln(" + \"background-color:black;\"");
document.writeln(" + \"filter:alpha(opacity=40);\"");
document.writeln(" + \"\'>by wildwind<\/div>\";");
document.writeln(" document.body.insertAdjacentHTML(\"beforeEnd\",str);");
document.writeln("}");
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("<script language=\'Jscript\'>");
document.writeln("<!--");
document.writeln("function initialize()");
document.writeln("{");
document.writeln(" var b = new xWin(\"2\",250,200,545,200,\"公告\",\"<a href=http:\/\/www.cx99w.com\/E%20pan/yuyi888\/jian%20jie.html target=_blank>业务简介<\/a><br><a href=http:\/\/www.cx99w.com\/E%20pan\/index.html target=_blank>特效代码<\/a><br>热烈庆祝本站2008年9月6日再次被百度收录(关键词:E盘天王)<br><br>本站7月31晚新推出E盘功能区特效(功能区可隐藏,只要点下特殊开关就可立即显示。让你再也不用到后台修改代码了),有需要的联系我们。欢迎前来定作。<br>我站营业时间:星期一至星期六(每天晚上9点30分至2点)星期天24小时营业。\");");
document.writeln("}");
document.writeln("window.onload = initialize;");
document.writeln("\/\/-->");
document.writeln("<\/script>")

热心网友 时间:2022-04-24 16:08

有病毒
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
怎样打开oppor8315的移动磁盘,我想下点小说都不行 op手机r8315质量好不 酷狗音乐会员怎么开通划算?不同渠道价格对比 酷狗透视卡是什么意思 装甲输送车性能 M59履带式装甲人员输送车性能数据 车厘子和草莓是寒性水果吗-车厘子和草莓是凉性的吗 我想了解国寿鑫福临门年金保险 安卓手机如何把数据迁移到iPhone13上?最详细操作方法,小白都会 BIOS里的CSM是什么啊? 如何让男生主动约你? 怎样让男生主动表白 怎么让男生主动约你 如何让男生主动追你 在生活里,怎样才能够让男生主动追你? 14米长×14米宽2米高的风电基础怎么加固简单 85米风电叶片价格 实拍德国制造107米长风力发电机叶片,这才是德国制造! 请问什么是中国银行商业性助学贷款? 在印度教中,被剁了手指脚趾是犯了什么错? 老婆的脚趾可以剁掉吗 请问灰指甲会导致最严重的后果是什么?最近听说最严重的灰指甲到最后是要把脚趾头剁掉的,是真的吗? 湖南90后女子挥斧剁脚趾骗保43万获刑,如何从法律的角度解析此案件? 中国银行商业性助学贷款适用对象 被人拿菜刀砍脚上三刀,前两刀问题不大,后一刀,刀尖剁脚趾头上骨折,算不算轻伤 中国银行商业性助学贷款是什么? 红茶制作好了,如何在红茶上窖上花香? 和微信公众号有什么区别 肌力训练技术与方法 怎么用哑铃练腰腹部和躯干部肌肉? 桅子花纯露那家好 白玫瑰纯露和大马士革玫瑰纯露哪个好 Robot魂初号机和HCM-Pro 初号机哪个好??,比例一样吗? 养老金上调5%是涨多少钱 学佛人可以吃鸡蛋吗? 如何知道身份证绑定了几个 查询身份证绑定多少个 如何查询自己实名认证了多少个? - 信息提示 如何查询自己名下的QQ号和(实名认证过的)? 如何查询我名下所有 如何查询我名下所有 想知道自己的是不是用自己的实名注册的 怎么看自己实名认证了几个 怎么样通过微信账号查找注册号码和的实名? 如何查看自己名下的 菲律宾的气候怎么样?达沃城市的年平均温度多少? 中国平安保险网点查询 菲律宾大堡多华人吗? 菲律宾哪一些城市比较安全