<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<title>页面背景</title>
</head>
<body>
<h1>用户自选背景</h1><hr>
<table border="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#00ffff"><a href="JavaScript:l()"
onmouseover="r('#00ffff'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#663399"><a href="JavaScript:l()"
onmouseover="r('#663399'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#669933"><a href="JavaScript:l()"
onmouseover="r('#669933'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#990033"><a href="JavaScript:l()"
onmouseover="r('#990033'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#666600"><a href="JavaScript:l()"
onmouseover="r('#666600'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#663366"><a href="JavaScript:l()"
onmouseover="r('#663366'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#000000"><a href="JavaScript:l()"
onmouseover="r('#000000'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#FF0000"><a href="JavaScript:l()"
onmouseover="r('#FF0000'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#CC6600"><a href="JavaScript:l()"
onmouseover="r('#CC6600'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#CC3399"><a href="JavaScript:l()"
onmouseover="r('#CC3399'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#666699"><a href="JavaScript:l()"
onmouseover="r('#666699'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#660033"><a href="JavaScript:l()"
onmouseover="r('#660033'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#330033"><a href="JavaScript:l()"
onmouseover="r('#330033'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#333300"><a href="JavaScript:l()"
onmouseover="r('#333300'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#FFFF00"><a href="JavaScript:l()"
onmouseover="r('#FFFF00'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#9900CC"><a href="JavaScript:l()"
onmouseover="r('#9900CC'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#FFCC66"><a href="JavaScript:l()"
onmouseover="r('#FFCC66'); return true"><img src="" border="0" width="10" height="10"></a></td>
<td bgcolor="#FFFFFF"><a href="JavaScript:l()"
onmouseover="r('#FFFFFF'); return true"><img src="" border="0" width="10" height="10"></a></td>
</tr>
</table>
<script language="JavaScript">
<!--
lck=0;
function r(hval)
{
if ( lck == 0 )
{
document.bgColor=hval;
}
}
function l()
{
if (lck == 0)
{
lck = 1;
}
else
{
lck = 0;
}
}
//-->
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
JavaScript 动态网页实例 - 背景效果.rar
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共10个文件
htm:5个
gif:4个
db:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
需积分: 5 0 下载量 6 浏览量
2024-05-19
20:15:43
上传
评论
收藏 10KB RAR 举报
温馨提示
页面背景是网页设计中必不可少的重要内容之一,其背景的好坏直接影响网页浏览者的浏览兴趣。网页背景分为背景图和背景色两种,对于普通的背景图和背景色,完全可以通过HTML实现,而要实现复杂的背景效果,则需要借助于JavaScript。本章介绍页面背景的一些实现效果。首先是一个页面背景随机切换的实例:然后,通过3种不同的方法,分别实现用户对页面背景的自动选择:最后,介绍一个闪电的页面背景效果。
资源推荐
资源详情
资源评论
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![js](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![js](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
共 10 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/1e506ee8c92743799de00dff16dfc152_cccloveforever.jpg!1)
迎风海盗旗
- 粉丝: 1066
- 资源: 28
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)