非主流热门点击
非主流相关内容
搜索BLOG文章

看看你的文章有没有被百度收入

博客基本信息
用户名: hsun3000
等级: 博士
在线时间: 25233 分钟
日志总数: 1260
评论数量: 188
访问次数: 575514
建立时间: 2007-03-02

XML RSS 2.0 WAP
我的日志
[免费代码]背景斜向移动2007-09-15
 

<html>

<head>
<title>网页特效---背景斜向移动</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" background="images/bg.gif">

<script language="<a href="http://www.iwangye.com/c24.aspx" title="">javascript</a>">
<!--
function selectAll(theField){
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
}
//-->
</script>


<script language="Javascript">
<!--
var background = "pic/logo2.gif";
var speed = 0;

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if (browserName != "Netscape" || browserVer >= 4.5) {

function moveback(movert,movedn,hPos,vPos) {

if (arguments[4])
document.body.style.backgroundImage = "url(\"" + arguments[4] + "\")";

if (arguments[5])
document.body.style.backgroundRepeat = arguments[5]

if (!isNaN(hPos)) {
if ((movert!=0) && (hPos>0)) hPos=-100000
hPos += movert
}
if (!isNaN(vPos)) {
if ((movedn!=0) && (vPos>0)) vPos=-100000
vPos+= movedn
}

document.body.style.backgroundPosition= hPos + " " + vPos
if (isNaN(hPos)) hPos = "\"" + hPos + "\""
if (isNaN(vPos)) vPos = "\"" + vPos + "\""
setTimeout("moveback("+movert+","+movedn+","+hPos+","+vPos+")",speed)
}

moveback(1,1,0,0, background);
}

//-->
    </script>
    </body>
</html>

 


原创文章如转载,请注明:转载自QQ非主流诱舞坊 [ http://hsun3000.blog.zj.com/ ]
本文链接地址:http://hsun3000.blog.zj.com/blog/d-155503.html

TAG: 背景
相关文章
文章评论0条回复
给文章评分
评分: -5 -3 -1 - +1 +3 +5
我来说两句
认证码*   看不清,就点我! 输入四位字母或数字
(您还没有登录,登录发表)
粗体 斜体 下划线 插入url链接 飞行字 移动字