<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>随机漂浮的广告</title>
<script>
function moveImg()
{
var width=document.body.offsetWidth-100;
//alert(width);
var height=document.body.offsetHeight-100;
var x=Math.round(Math.random()*width);
var y=Math.round(Math.random()*height);
//alert(x+"====="+y);
document.getElementById('mydiv').style.top=y;
document.getElementById('mydiv').style.left=x;
setTimeout("moveImg()",800);
}
</script>
</head>
<body onLoad="moveImg()">
<div id="mydiv" style="position:absolute;">
<img src="float_advclose1.gif">
</div>
</body>
</html>
图片随机漂浮
3星 · 超过75%的资源 需积分: 9 108 浏览量
2008-06-13
14:45:45
上传
评论
收藏 7KB RAR 举报
dadi5566
- 粉丝: 7
- 资源: 46
最新资源
- 88-520告白(520气球).zip
- HTML+CSS+JS精品网页模板H126.rar
- n.cpp
- jdk-8u411-windows-x64下载安装可用
- vgg模型-图像分类算法对水果识别-不含数据集图片-含逐行注释和说明文档.zip
- KMP算法(Knuth-Morris-Pratt算法
- vgg模型-python语言pytorch框架训练识别化妆品分类-不含数据集图片-含逐行注释和说明文档.zip
- KMP算法(Knuth-Morris-Pratt算法
- shufflenet模型-基于人工智能的卷积网络训练识别狗的表情-不含数据集图片-含逐行注释和说明文档.zip
- EPIC Fantasy Town 1.0
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈