functionQueue()...{varitems=newArray();varfirst=0;varcount=0;this.Count=function()...{returncount;};this.Peek=function(last)...{varresult=null;if(count>0)...{if(null!=last&&true=" />

亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

仿msn,右下角信息提示頁

系統 1821 0
1
< scriptlanguage = " JavaScript " type = " text/javascript " >
function Queue() ... {
var items = new Array();
var first = 0 ;
var count = 0 ;
this .Count = function () ... { return count;} ;
this .Peek = function (last) ... {
var result = null ;
if (count > 0 ) ... {
if ( null != last && true == last)
result
= items[first + (count - 1 )];
else
result
= items[first];
}

return result;
}
;
this .Enqueue = function (x) ... {
items[first
+ count] = x;
count
++ ;
return x;
}
;
this .Dequeue = function () ... {
var result = null ;
if (count > 0 ) ... {
result
= items[first];
delete items[first];
first
++ ;
count
-- ;
}

return result;
}
;
}


function Popup_Close() ... {
if ( this .popup != null )
this .popup.document.onmouseover = null ;
else
this .win.Win.onmouseover = null ;
this .isMouseOver = false ;
this .ShowTime = function () ... { return 3 ;}
this .Hide();
}


function Popup_Hide() ... {
if ( this .popup != null && this .popup.isOpen) ... {
this .popup.hide();
}

this .popup = null ;
}


function Popup_ShowTime() ... {
var result = null ;
if ( this .showTime != null ) ... {
var now = new Date();
result
= (now - this .showTime) / 1000 ;
}

return result;
}


function OnClick_Popup(id) ... {
alert(id);
}



function Popup_CreateBody(winID,title,message) ... {
bodyhtml
= " <tableid= " + winID + " style="BORDER-RIGHT:#4556901pxsolid;BORDER-TOP:#a6b4cf1pxsolid;LEFT:0px;BORDER-LEFT:#a6b4cf1pxsolid;WIDTH:180px;BORDER-BOTTOM:#4556901pxsolid;POSITION:absolute;TOP:0px;HEIGHT:102px;BACKGROUND-COLOR:#1c5b94"> " + " " + " <tr> " + " " + " <td> " + " " + " <tablecellSpacing=0cellPadding=0width="100%"bgColor=#1c5b94border=0> " + " " + " <tbody> " + " " + " <tr> " + " " + " <tdstyle="FONT-SIZE:12px;COLOR:#FFFFFF;"> " + title + " </td> " + " " + " </tr> " + " " + " <trbgcolor="#d7e7f2"onMouseOver="this.style.backgroundColor='#f0f0f0'"onMouseOut="this.style.backgroundColor='#d7e7f2'"> " + " " + " <tdwidth="100%"align=leftheight=76> " + " " + " <DIVstyle="BORDER-RIGHT:#9c9e9c1pxsolid;PADDING-RIGHT:13px;BORDER-TOP:#9c9e9c1pxsolid;PADDING-LEFT:13px;FONT-SIZE:12px;PADDING-BOTTOM:13px;BORDER-LEFT:#9c9e9c1pxsolid;WIDTH:100%;COLOR:#1f336b;PADDING-TOP:15px;BORDER-BOTTOM:#9c9e9c1pxsolid;HEIGHT:100%"> " + " " + message + " " + " </td> " + " " + " </tr> " + " " + " </tbody> " + " " + " </table> " + " " + " </td> " + " " + " </tr> " + " " + " </table> "
return bodyhtml;
}


function Popup_Show()
... {
this .showTime = new Date();
this .popup = window.createPopup();
var d = this .popup.document;
var b = d.body;
b.rightmargin
= 0 ;
b.leftmargin
= 0 ;
b.topmargin
= 0 ;
b.bottommargin
= 0 ;
b.innerHTML
= this .aspxl;

var toastWidth = 180 ;
var toastHeight = 102 ;
var toastVerticalMargin = 28 ;
var toastHorizontalMargin = 16 ;
var screenWidth = window.screen.width;
var screenHeight = window.screen.height;
this .popup.show(screenWidth - toastWidth - toastHorizontalMargin,screenHeight - toastHeight - toastVerticalMargin,toastWidth,toastHeight);
}



function Popup(winID,message,title) ... {
this .PostID;
this .CreateBody = Popup_CreateBody;
this .Close = Popup_Close;
this .Hide = Popup_Hide;
this .Show = Popup_Show;
this .ShowTime = Popup_ShowTime;
this .aspxl = this .CreateBody(winID,message,title);
}


function PopupManager() ... {
var queue = new Queue();
var canShow = (window.createPopup != null );
this .Disabled = false ;
this .Heartbeat = function () ... {
if (queue.Count() > 0 ) ... {
var p = queue.Peek();
var delta = p.ShowTime();
if (delta == null ) ... {
if ( ! this .Disabled)
p.Show();
}

else if ((p.popup == null ) || ( ! p.popup.isOpen) || ( ! p.isMouseOver && delta >= 3 )) ... {
p.Hide();
queue.Dequeue();
}

}

}

this .AddPopup = function (winID,message,title) ... {
var result = null ;
do ... {
if (canShow) ... {
result
= new Popup(winID,message,title);
result.PopupManager
= this ;
queue.Enqueue(result);
this .Heartbeat();
}

}

while ( false );
return result;
}

}




var popupManager = new PopupManager();
window.setInterval(
" popupManager.Heartbeat(); " , 1500 );
var p = popupManager.AddPopup( " aa " , " 111 " , " 11111111111 " );
p.PostID
= 1 ;
p
= popupManager.AddPopup( " bb " , " 2222 " , " 222222222 " );
p.PostID
= 3 ;
p
= popupManager.AddPopup( " popupWin " , " 3333 " , " 33333333333 " );
p.PostID
= 6 ;

</ script >
2
< SCRIPT >
var oPopup = window.createPopup();
var popTop = 50 ;
function popmsg(titlestr,msgstr) ... {
var winstr = " <tableid=eMengstyle="BORDER-RIGHT:#4556901pxsolid;BORDER-TOP:#a6b4cf1pxsolid;LEFT:0px;BORDER-LEFT:#a6b4cf1pxsolid;WIDTH:180px;BORDER-BOTTOM:#4556901pxsolid;POSITION:absolute;TOP:0px;HEIGHT:102px;BACKGROUND-COLOR:#1c5b94"> " + " " + " <tr> " + " " + " <td> " + " " + " <tablecellSpacing=0cellPadding=0width="100%"bgColor=#1c5b94border=0> " + " " + " <tbody> " + " " + " <tr> " + " " + " <tdstyle="FONT-SIZE:12px;COLOR:#FFFFFF;"> " + titlestr + " </td> " + " " + " <tdalign="right"valign="top"><imgid="imgClose"src="Images/closePNormal.gif"width="16"height="16"border="0"onClick="parent.oPopup.hide()"alt="關閉"></td> " + " " + " </tr> " + " " + " <trbgcolor="#d7e7f2"onMouseOver="this.style.backgroundColor='#f0f0f0'"onMouseOut="this.style.backgroundColor='#d7e7f2'"> " + " " + " <tdwidth="100%"align=leftcolSpan=2height=76> " + " " + " <DIVstyle="BORDER-RIGHT:#9c9e9c1pxsolid;PADDING-RIGHT:13px;BORDER-TOP:#9c9e9c1pxsolid;PADDING-LEFT:13px;FONT-SIZE:12px;PADDING-BOTTOM:13px;BORDER-LEFT:#9c9e9c1pxsolid;WIDTH:100%;COLOR:#1f336b;PADDING-TOP:15px;BORDER-BOTTOM:#9c9e9c1pxsolid;HEIGHT:100%"> " + "
分享到:
評論

仿msn,右下角信息提示頁


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 亚欧精品一区二区三区 | 中国免费毛片 | 欧美成人四级剧情在线播放 | 26uuu亚洲| 欧美日本综合 | 精品国精品国产自在久国产不卡 | 99在线精品免费视频九九视 | 欧美与黑人午夜性猛交久久久 | 国产福利在线看 | 日日操夜夜操视频 | 99热久久精品国 | 日韩做爰视频免费 | 国产精品成人观看视频免费 | 四虎激情影院 | 日本在线视 | 国产精品久久久久久久久久日本 | 国产成人aa免费视频 | 久久天天躁狠狠躁夜夜2020一 | 日韩精品久久不卡中文字幕 | 精品国产日韩久久亚洲 | 欧美激情视频二区 | 欧美日本免费观看αv片 | 亚州精品视频 | 国产乱人伦精品一区二区 | 欧洲成人在线观看 | 久久国产精品女 | 五月天婷婷激情网 | 一区二区三区在线 | 国产69精品久久久久777 | 九九热视 | 亚洲高清国产一区二区三区 | 目韩一区二区三区系列片丶 | 国产精品一区二区综合 | 爱爱小视频成人免费 | 国产精品福利视频一区二区三区 | 麻豆精品视频 在线视频 | 麻豆久久婷婷综合五月国产 | 成人精品亚洲人成在线 | 国产成人久久精品二区三区牛 | 久热re在线视频精品免费 | a看片|