В этой статье описывается влияние реализации DV на странице JS. Поделитесь этим для вашей ссылки, следующим образом:
<style type = "text/css"> body {margin: 0px;}#div1 {display: none; позиция: абсолютно; Z-Index: 1000; высота: 100%; Ширина: 100%; Фон: #000000; Фильтр: альфа (непрозрачность = 30);}#div2 {display: none; позиция: абсолютно; высота: 100%; Ширина: 100%; надоеволок: 10%; z-index: 1001;}#div3 {display: block; позиция: абсолютно; z-index: 999;} </style> <script type = "text/javascript"> // Определение движущегося объекта и движущихся координат var mouse_obj = "none", _ x, _y; // функция Drag-incy (автоматическое) document.onmousemove = function () {if (mouse_obj! " document.getElementbyId (mouse_obj) .style.left = _x+event.x; document.getElementbyId (mouse_obj) .style.top = _y+event.y; event.returnValue = false; }} // Остановить функцию перетаскивания (автоматически) document.onmouseup = function () {mouse_obj = "non";} // определить, что функция перетаскивающего объекта o - функция перетаскивающего объекта m (o) {mouse_obj = o; _x = parseint (document.getElementByid (mouse_obj) .style.left) -вент.x; _y = parseint (document.getElementbyId (mouse_obj) .style.top) -event.y;} </script> <div id = "div1"> </div> <div id = "div2" onmousedown = "m (this.id)" стиль = "слева: 0px; top: 0px;> <table cellpadding =" 3 "3". #ff7300; положение: статическое; фильтр: Progid: dximageTransform.microsoft.dropshadow (color =#666666, offx = 4, offy = 4, optives = true) "align ="> <tr style = "cursor: move;" <td> <font = "#ffff"> rempl align = "right"> <input type = "button" value = "x" onclick = "document.getElementbyId ('div1'). style.display = 'none'; document.getElementbyId ('div2'). style.display = 'none';"; style="cursor: hand;"></td> </tr> <td colspan="2" bgcolor="#FFFFFF"align="middle">Welcome to <a href="//www.VeVB.COM">//www.VeVB.COM</a></td> </tr></table></div><div id="div3"><input type="button" value = "Open Layer" onclick = "document.getElementById ('div1'). style.display = 'block'; document.getElementById ('div2'). style.display = 'block';"> </div>For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript switching effects and techniques", "Summary of JavaScript search algorithm skills", "Summary of JavaScript animation effects and techniques", "Summary of JavaScript errors and debugging techniques", "Summary of JavaScript data structures and algorithm skills", "Summary of Алгоритмы и методы обхода JavaScript »и« Сводка использования математических операций JavaScript ».
Я надеюсь, что эта статья будет полезна для каждого программирования JavaScript.