请问怎么才能在一个网页中弹出一个窗口,不是一个网页

来源:百度知道 编辑:UC知道 时间:2024/05/12 08:08:45
不是 window.open 语句
window.open 是弹出一个新的页面虽然能设计页面的大小和位置,但是那是另外一个页面。而不是主页面的一个窗口。就像有的网站浏览网页时右下角弹出一个窗口。并且能在像一网页一样有链接,图片,关闭按钮==东西,但是不是一个网页。
在网上找了一些资料貌似和js有关。
希望各位高手能解释一下,最好能有代码,或下载地址。

以下是我做的一个小页面不知道能不能满足你的要求~~
<html>
<head>
<title>类似MSN提示的页面效果</title>
</head>
<body scroll=no>
看到右下角的提示了吗?如果没有看到,<button onclick=location.reload();>刷新</button>一下
<script language="JavaScript">
window.onload = getMsg;
window.onresize = resizeDiv;
window.onerror = function(){}
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 = par