javascriptをメッセージプロンプトボックスにする(QQユーザーオンラインに似たメッセージプロンプト)
HTMLPage1
var titlePopup
var len;
function InitMsgBox()
{ len = 0;
titlePopup=window.createPopup();
var titlePopupBody = titlePopup.document.body;
titlePopupBody.style.border ="solid black 1px";
var titleContent = "";
titleContent = titleContent + "<table cellPadding='5' bgcolor='#65c1ff' width='100%' height='100%' border=0 cellspacing=0 cellpadding=0>";
titleContent = titleContent + "<tr><td align=center><font size = 2> </font></td></tr>";
titleContent = titleContent + "<tr><td><font size = 2>1</td></font></tr>";
titleContent = titleContent + "<tr><td><font size = 2>2</td></font></tr>";
titleContent = titleContent + "<tr><td><font size = 2>3</td></font></tr>";
titleContent = titleContent + "</table>";
titlePopupBody.innerHTML = titleContent;
ShowMsgBox();
}
function MsgBox()
{
len += 4;
if (len > 110)
{
window.clearInterval(tID);
}
else
{//170
titlePopup.show(document.body.clientWidth - 170, document.body.clientHeight - len, 170, len, top.document.body);
}
}
var tID
function ShowMsgBox()
{
tID = window.setInterval("MsgBox()",15);
}