В этой статье описывается эффекты скрытия слоя маски и отображения, которые JS реализует, совместимые со свойствами Firefox и IE iframe Onload. Поделитесь этим для вашей ссылки, следующим образом:
<%@ page language = "java" import = "java.util.*" pageencoding = "gb2312"%> <%string path = request.getContextPath (); String basePath = request.getScheme () + ": //" + request.getServername () + ":" + request.getserport () + "/". "// W3C // DTD HTML 4.01 Transitional // en"> <html> <Head> <base href = "<%= basepath%>"> <tite> </title> <meta http-equiv = "pragma" content = "no-cache"> <Meta http-equiv = "cache-control" no-case = "no-cache" no-c http-equiv = "истекает" content = "0"> <meta http-equiv = "Keywords" Content = "Keyword1, Keyword2, Keyword3"> <meta http-equiv = "description" content = "Это моя страница"> <! type = "text/css"> <!-#layer1 {положение: абсолютно; ширина: 896px; высота: 472px; z-index: 1; слева: 97px; top: 120px;}#layer2 {Положение: Absolute; ширина: 127px; высота: 86px; z-index: 2; {позиция: Absolute; ширина: 200px; высота: 115px; z-index: 3; слева: 404px; top: 160px;} body {background-image: url (lib/images/index111.jpg); margin-left: -10px;}. input_image {border: 0px solid #808080; Фоно-цвета:#006699;}-> </style> </head> <body Leatmargin = "0" TopMargin = "0" "marginWidth =" 0 "marginHeight =" 0 "OnContextMenu =" return false "onDragStart =" return false-on selectStart = "return false" onselect on selectect onselectectectectem. oncopy = "document.selection.empty ()" onbeforecopy = "return false" onmouseup = "document.selection.empty ()"> <div id = "layer3"> <img src = "lib/images/werving33.gif"/> </div> <div id = "layer1"> <iframe src = "Земля. id = "layer1"> </iframe> </div> <div id = "layer2"> <input type = image src = "lib/image/webse.jpg" id = "webse_earth"/> <br> <br> <input type = image src = "lib/image/ocsportor.jpg" id = "select_ass"/> <br> <br> <br> <brz> src = "lib/images/yichang.jpg" id = "yichang"/> <br> <br> <input type = image src = "lib/images/lvchang.jpg" id = "gtbike"/> <</div> </body> </html> <cript> var secs = 20; Timing () {document.getElementById ("select_ass"). Disabled = true; document.getElementById ("select_ass"). src = "lib/images/123123.jpg"; // timeed switching image/ *for (i = 1; i <= (wait/100); i ++ {window.settim 100);} window.settimeout ("timer ()", wate);} функция doupdate (num) {if (num == (wate/100)) {document.getElementbyId ("select_ass"). Src = "lib/images/ocsocator.jpg"; } else {wut = (wate/100) -num; document.getElementbyId ("select_ass"). src = "lib/images/123123.jpg"; }*/} // переключение исходного изображения функция timer () {document.getElementById ("select_ass"). Disabled = false; document.getElementById ("select_ass"). Src = "lib/images/ocsocator.jpg";} var btmax = document.getelementbyid ("layer1"); function () {displaydiv (); btmax.innerhtml = "<iframe src = earth.jsp id = layer1 onload = 'relemoviviv ()'> </iframe>";} select_ass.onclick = function () {displaydiv (); timing (); btmax.innerhtml = "<iddiv (); timing (); btmax.innerhtml =" <iddiv (); timing (); btmax.innerhtml = "<iddiv (); Onload = 'removediv ()'> </iframe> "; // JS создает объект iframe/*var NewFrame = window.parent.document.createElement ("iframe"); newframe.id = "layer1"; newframe.setattribute ("crameborder", "0"); newframe.setattribute ("scrolli ng "," no "); newframe.setattribute (" onload "," relectiviv () "); newframe.setattribute (" src "," client? name = 1 "); btmax.appendchild (newframe);/} yichang.onclick = function () {displaydiv (); btmax.innerhtml = "<iframe src = client? name = 2 id = layer1 onload = 'relemoviviv ()'> </iframe>";} gtbike.onClick = funct id = layer1> </iframe> ";} // Маска -слой Display var mybg; displaydiv = function () {mybg = document.createElement (" div "); mybg.setattribute ("id", "mybg"); mybg.innerhtml = "<Center> обрабатывается, пожалуйста, подождите <img src = 'lib/images/load.gif'> </img> </center>"; mybg.style.width = "100%"; mybg.style.position = "Absolute"; // Абсолютное положение отображать mybg.style.top = "260"; mybg.style.left = "0"; mybg.style.zindex = "100"; // положение оси z mybg.style.opacity = "0,8"; // прозрачность mybg.style.filter = "alpha (непрозрачность = 80)"; // Filter отображает прозрачность документ. relemoviviv = function () {document.body.removechild (mybg); timer ();} </script>For more information about JavaScript related content, please check out the topics of this site: "JavaScript switching special effects and techniques summary", "JavaScript animation special effects and techniques summary", "JavaScript search algorithm skills summary", "JavaScript data structure and algorithm skills summary", "JavaScript traversal algorithm and techniques summary", "JavaScript operation skills Резюме "," Сводка ошибок JavaScript и навыки отладки "и" JavaScript Mathematic Operation Сводка использования "
Я надеюсь, что эта статья будет полезна для каждого программирования JavaScript.