日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何实现一个java窗口_如何实现多个弹出窗口?

發布時間:2024/4/13 编程问答 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何实现一个java窗口_如何实现多个弹出窗口? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我有一個問題是實現多個彈出窗口 . 我從網上獲取這個腳本,當我申請單個彈出窗口時它是正確的但是如果我復制了這個 . 你可以在:Dendrosite看到它 . 在左邊緣菜單(Sinopsi / Fitxa / Autors)中,我在一個(Sinopsi)中正確實現,但現在我可以實現其他(Fitxa / Autors)

HTML:

使用Javascript:

var popupStatus = 0;

//loading popup with jQuery magic!

function loadPopup(){

//loads popup only if it is disabled

if(popupStatus==0){

$("#backgroundPopup").css({

"opacity": "0.7"

});

$("#backgroundPopup").fadeIn("fast");

$("#popupContact").fadeIn("fast");

popupStatus = 1;

}

}

//disabling popup with jQuery magic!

function disablePopup(){

//disables popup only if it is enabled

if(popupStatus==1){

$("#backgroundPopup").fadeOut("fast");

$("#popupContact").fadeOut("fast");

popupStatus = 0;

}

}

//CONTROLLING EVENTS IN jQuery

$(document).ready(function(){

//LOADING POPUP

//Click the button event!

$("#go").click(function(){

//centering with css

//load popup

loadPopup();

});

//CLOSING POPUP

//Click the x event!

$("#popupContactClose").click(function(){

disablePopup();

});

//Click out event!

$("#backgroundPopup").click(function(){

disablePopup();

});

//Press Escape event!

$(document).keypress(function(e){

if(e.keyCode==27 && popupStatus==1){

disablePopup();

}

});

});

和CSS:

#backgroundPopup{

display:none;

position:fixed;

_position:absolute; /* hack for internet explorer 6*/

height:100%;

width:100%;

top:0;

left:0;

z-index:1;

}

#popupContact{

margin-top: -104px;

margin-left:102px;

display:none;

position:fixed;

_position:absolute; /* hack for internet explorer 6*/

height:288px;

width:600px;

z-index:9;

padding:12px;

background-color: #333;

filter: alpha(opacity=20); opacity: .5

}

#popupContact h1{

font-family:Arial, Helvetica, sans-serif;

font-size:20px;

color:#FFF;

text-shadow: 0px 1px 1px #000;

padding-bottom:10px;

margin-bottom:30px;

border-bottom-width: 1px;

border-bottom-style: solid;

}

#popupContact h3{

font-family: Arial, Helvetica, sans-serif;

font-size: 12px;

color: #FFF;

text-align: justify;

}

#popupContactClose{

font-size:18px;

line-height:14px;

right:6px;

top:4px;

position:absolute;

color: #ffeb70;

font-weight:700;

display:block;

cursor: pointer;

font-family: Arial, Helvetica, sans-serif;

}

謝謝!

超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生

總結

以上是生活随笔為你收集整理的如何实现一个java窗口_如何实现多个弹出窗口?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。