代办商务邀请函:各位大虾,谁能帮我提供下,flash对联式上下浮动的网页或源代码呀

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/11 04:38:15
各位大虾,谁能帮我提供下,flash对联式上下浮动的网页或源代码呀
谢啦,问题解决啦,http://www.zishu.cn/blogview.asp?logID=153
上下载源程序。

我能,看我的网站,http://hbljp.icpcn.com
代码如下

<div id="img" style="position:absolute;">
<a href="http://hbljp.go1.icpcn.com" target="_blank">
<img src="http://hbljp.go1.icpcn.com/1.gif" border="0"></a>
</div>

<SCRIPT LANGUAGE="JavaScript">
<!--
var xPos = 20;
var yPos = document.body.clientHeight;
var step = 1;
var delay = 30;
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
img.style.top = yPos;
function changePos() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = img.offsetHeight;
Woffset = img.offsetWidth;
img.style.left = xPos + document.body.scrollLeft;
img.style.top = yPos + document.body.scrollTop;
if (yon) {
yPos = yPos + step;
}
else {
yPos = yPos - step;
}
if (yPos < 0) {
yon = 1;
yPos = 0;
}
if (yPos >= (height - Hoffset)) {
yon = 0;
yPos = (height - Hoffset);
}
if (xon) {
xPos = xPos + step;
}
else {
xPos = xPos - step;
}
if (xPos < 0) {
xon = 1;
xPos = 0;
}
if (xPos >= (width - Woffset)) {
xon = 0;
xPos = (width - Woffset);
}
}
function www_helpor_net() {
img.visibility = "visible";
interval = setInterval('changePos()', delay);
}
www_helpor_net();
//For more,visit:www.helpor.net
-->
</script>