足球游戏_中国足彩网¥体育资讯$

在桌面上浮动的图片
来源:易贤网 阅读:1502 次 日期:2014-08-26 16:11:40
温馨提示:易贤网小编为您整理了“在桌面上浮动的图片”,方便广大网友查阅!

<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

}

 

if(!img_url) img_url="http://www.forasp.cn/images/logo2.gif";

else s();

 

var imagepath=img_url;

var speed=3;

var imageclick="/"

//var imageclick="dismiss"

var hideafter=0

 

////No editing required beyond this point/////////////////

 

var isie=0;

if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {

isie=1;

}

else {

isie=0;

}

 

if(isie){

var preloadit=new Image()

preloadit.src=imagepath

}

 

 

function pop() {

if(isie) {

x=x+dx;y=y+dy;

oPopup.show(x, y, imagewidth, imageheight);

if(x+imagewidth+5>screen.width) dx=-dx;

if(y+imageheight+5>screen.height) dy=-dy;

if(x<0) dx=-dx;

if(y<0) dy=-dy;

startani=setTimeout("pop();",50);

}

}

 

function dismisspopup(){

clearTimeout(startani)

oPopup.hide()

}

 

function dowhat(){

if (imageclick=="dismiss")

dismisspopup()

else

window.location=imageclick

}

 

 

if(isie) {

var x=0,y=0,dx=speed,dy=speed;

var oPopup = window.createPopup();

var oPopupBody = oPopup.document.body;

oPopupBody.style.cursor="hand"

oPopupBody.innerHTML = '<IMG SRC="'+preloadit.src+'">';

oPopup.document.body.onmouseover=new Function("clearTimeout(startani)")

oPopup.document.body.onmouseout=pop

oPopup.document.body.onclick=dowhat

pop();

 

if (hideafter>0)

setTimeout("dismisspopup()",hideafter*1000)

}

// -->

</SCRIPT>

中国足彩网信息请查看脚本栏目
下一篇:弹出无边窗口
易贤网手机网站地址:在桌面上浮动的图片
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 足球游戏_中国足彩网¥体育资讯$ 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:易贤网
云南网警报警专用图标