框架:
<HTML>
<HEAD>
<TITLE></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<FRAMESET cols="*,192">
<FRAMESET rows="90,*,118,0,0" cols="*" framespacing="0">
<FRAME name="banner" scrolling="no" src="">
<FRAMESET name="box" rows="*,0" cols="*" framespacing="1" frameborder="yes">
<FRAME name="body" src="">
<FRAME name="body2" src="about:blank">
</FRAMESET>
<FRAMESET rows="24,86" cols="*" framespacing="0" frameborder="no">
<FRAME name="ad" scrolling="no" src="about:blank">
<FRAME name="form" src="">
</FRAMESET>
<FRAME name="h" src="about:blank">
<FRAME name="music" src="about:blank">
</FRAMESET>
<FRAMESET rows="*,118" cols="*" framespacing="0">
<FRAME name="user" src="about:blank" scrolling="auto" frameborder="no">
<FRAME name="voice" src="about:blank" scrolling="no" frameborder="no" style="BORDER-TOP:#c0c0c0 1px dotted">
</FRAMESET>
</FRAMESET>
<NOFRAMES>
<BODY>
您的浏览器不支持框架!!!
</BODY>
</NOFRAMES>
</HTML>右下角窗口<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<Script language="JavaScript">
<!--
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
//短信提示使用(asilas添加)
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng").style.top,10)
divLeft = parseInt(document.getElementById("eMeng").style.left,10)
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;// divHeight
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getElementById("eMeng").style.visibility="visible"
objTimer = window.setInterval("moveDiv()",10)
}
catch(e){}
}function resizeDiv()
{
i+=1
if(i>2000) closeDiv() //客户想不用自动消失由用户来自己关闭所以屏蔽这句
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}function moveDiv()
{
try
{
if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(objTimer)
objTimer = window.setInterval("resizeDiv()",1)
}
divTop = parseInt(document.getElementById("eMeng").style.top,10)
document.getElementById("eMeng").style.top = divTop - 1
}
catch(e){}
}
function closeDiv()
{
document.getElementById('eMeng').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
-->
</Script><!--温馨提示代码开始--><DIV id=eMeng style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 320px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: 216px; BACKGROUND-COLOR: #c9d3f3">
<TABLE style="BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" cellSpacing=0 cellPadding=0 width="100%" bgColor=#AFDCF3 border=0>
</TABLE>
</DIV>
<!--温馨提示代码结束-->
</html>
<HTML>
<HEAD>
<TITLE></TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<FRAMESET cols="*,192">
<FRAMESET rows="90,*,118,0,0" cols="*" framespacing="0">
<FRAME name="banner" scrolling="no" src="">
<FRAMESET name="box" rows="*,0" cols="*" framespacing="1" frameborder="yes">
<FRAME name="body" src="">
<FRAME name="body2" src="about:blank">
</FRAMESET>
<FRAMESET rows="24,86" cols="*" framespacing="0" frameborder="no">
<FRAME name="ad" scrolling="no" src="about:blank">
<FRAME name="form" src="">
</FRAMESET>
<FRAME name="h" src="about:blank">
<FRAME name="music" src="about:blank">
</FRAMESET>
<FRAMESET rows="*,118" cols="*" framespacing="0">
<FRAME name="user" src="about:blank" scrolling="auto" frameborder="no">
<FRAME name="voice" src="about:blank" scrolling="no" frameborder="no" style="BORDER-TOP:#c0c0c0 1px dotted">
</FRAMESET>
</FRAMESET>
<NOFRAMES>
<BODY>
您的浏览器不支持框架!!!
</BODY>
</NOFRAMES>
</HTML>右下角窗口<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<Script language="JavaScript">
<!--
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
//短信提示使用(asilas添加)
var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
function getMsg()
{
try{
divTop = parseInt(document.getElementById("eMeng").style.top,10)
divLeft = parseInt(document.getElementById("eMeng").style.left,10)
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;// divHeight
document.getElementById("eMeng").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
document.getElementById("eMeng").style.visibility="visible"
objTimer = window.setInterval("moveDiv()",10)
}
catch(e){}
}function resizeDiv()
{
i+=1
if(i>2000) closeDiv() //客户想不用自动消失由用户来自己关闭所以屏蔽这句
try{
divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10)
divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10)
docWidth = document.body.clientWidth;
docHeight = document.body.clientHeight;
document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)
document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
}
catch(e){}
}function moveDiv()
{
try
{
if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))
{
window.clearInterval(objTimer)
objTimer = window.setInterval("resizeDiv()",1)
}
divTop = parseInt(document.getElementById("eMeng").style.top,10)
document.getElementById("eMeng").style.top = divTop - 1
}
catch(e){}
}
function closeDiv()
{
document.getElementById('eMeng').style.visibility='hidden';
if(objTimer) window.clearInterval(objTimer)
}
-->
</Script><!--温馨提示代码开始--><DIV id=eMeng style="BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 320px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: 216px; BACKGROUND-COLOR: #c9d3f3">
<TABLE style="BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" cellSpacing=0 cellPadding=0 width="100%" bgColor=#AFDCF3 border=0>
</TABLE>
</DIV>
<!--温馨提示代码结束-->
</html>
var p = window.createPopup();
function fun()
{
var b = p.document.body;
b.style.backgroundColor = "lightyellow";
b.style.border = "solid black 1px";
b.innerHTML = "点击外面关闭";
p.show(100, 100, 100, 25, document.body);
}
</script>
<input type="button" onclick="fun()" value="按钮">