<html>
<head>
<title>陰魂不散的圖片</title>
</head>
<body>
這是一張陰魂不散的圖片,你可以把瀏覽器最小化看看,它可以飄浮在你的桌面上...
</body>
</html>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
var img=null;
var imagewidth=250;
var imageheight=150;
var url=window.location.href;
var url_array=url.split("?img=");
var img_url=url_array[1];
function s()
{
if(img) img.removeNode(true);
img=document.createElement("img");
img.style.position="absolute";
img.style.visibility="hidden";
img.attachEvent("onreadystatechange",orsc);
img.attachEvent("onerror",oe);
document.body.insertAdjacentElement("beforeend",img);
img.src=img_url;
}
function oe()
{
alert("no image");
imagewidth=0
imageheight=0
}
function orsc()
{
if(img.readyState!="complete")return false;
imagewidth=img.offsetWidth
imageheight=img.offsetHeight
}