来自 新葡亰运维 2019-11-27 16:48 的文章
当前位置: 澳门新葡亰app > 新葡亰运维 > 正文

复制代码 代码如下

先是种方法:预览: Html代码 复制代码 代码如下:

调换窗口

那只是一个演示题目[ x ]

When a container object, such as a div, has mouse capture, events originating on objects within that container are fired by the div, unless the bContainerCapture parameter of the setCapture method is set to false. Passing the value false causes the container to no longer capture all document events. Instead, objects within that container still fire events, and those events also bubble as expected.
---This is edited by Alp.

click

Js代码 复制代码 代码如下: function drag{ title.onmousedown = function{ var doc = document; var evt = evt || window.event; var x = evt.offsetX?evt.offsetX:evt.layerX; var y = evt.offsetY?evt.offsetY:evt.layerY; if{ overFlow.setCapture(); }else if{ window.capture伊夫nts(伊夫nt.MOUSEMOVE|伊夫nt.MOUSEUP); } doc.onmousemove = function{ evt = evt || window.event; var xPosition = evt.pageX || evt.clientX; var yPosition = evt.pageY || evt.clientY; var newX = xPosition - x; var newY = yPosition - y; overFlow.style.left = newX; overFlow.style.top = newY; }; doc.onmouseup = function(){ if(overFlow.releaseCapture){ overFlow.releaseCapture(); }else if{ window.capture伊芙nts(Event.MOUSEMOVE|伊夫nt.MOUSEUP); } doc.onmousemove=null; doc.onmouseup=null; }; }; } css代码 复制代码 代码如下: #over{ position: absolute; left: 300px; top: 200px; border: 1px solid black; display: none; background: #cccccc; cursor: default; width: 300px; z-index: 10; opacity: 1; } #title{ border: 1px solid #1840C4; background: #95B4DC; padding: 2px; font-size:12px; cursor: default; } #close{ cursor: pointer; margin-right: 1px; overflow: hidden; } #content{ border: 1px solid #C2D560; background: #EFF4D7; } #t{ margin-right:145px; } #mask{ z-index: 1; background: #fff; width: 1024px; height: 800px; } #b{ position: absolute; left: 200px; top: 100px; } body{ padding: 0px; margin: 0px; } #over{ background: transparent; } 其次种办法:消息框遮罩层:

nothing...

' 页面加载loading中:

图片 1

闭馆浮动窗口:关门窗口提出用小图片) 展开浮动窗口:张开浮动 复制代码 代码如下: // 消息框loading function loading(){ var o = $; o.css.width/2-/2))+"px"); o.css.height.scrollTop/2-/2))+"px"); o.fadeIn; } // 音讯框消失 function loaded(){ var o = $; o.fadeOut; } // 隐蔽浮动窗口 function hideupload.hide(); $('#show_upload_iframe').hide(); } // 弹出转换窗口 function showupload; var o=$; var f=$('#show_upload_iframe'); var top = 200; $.ajax({ url: ajaxurl, //cache: false, success: function; o.html; o.css.width/2-/2))+"px"); if.scrollTop{ top = +$)/2-/2); } o.css; f.css,'height':o.height(),'left':o.css,'top':o.css; o.show; }

本文由澳门新葡亰app发布于新葡亰运维,转载请注明出处:复制代码 代码如下

关键词: