所有课题
网站首页
栏目列表
当前位置:
首页
>>
化学家园
>>
习题下载
>>
中考模拟
>>文章内容
BODY颜色随表格内颜色变化而变化
发布时间:2008-12-25 点击: 来源:互联网 作者:未知
BODY颜色随表格内颜色变化而变化:
Source Code to Run
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://{域名已经过期}/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://{域名已经过期}/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>BODY颜色随表格内颜色变化而变化--中国IT人才网!IT求职,IT招聘</title> </head> <script language="javascript"> function tdcolor(obj) { document.bgColor = obj.bgColor; } </script> <body> <center> <table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#F4F4F4" onmouseover="tdcolor(this)" style="cursor:pointer;" align="center">#F4F4F4</td> </tr> <tr> <td bgcolor="#BDFAD7" onmouseover="tdcolor(this)" style="cursor:pointer;" align="center">#BDFAD7</td> </tr> <tr> <td bgcolor="#A9E6FF" onmouseover="tdcolor(this)" style="cursor:pointer;" align="center">#A9E6FF</td> </tr> <tr> <td bgcolor="#E3FEB5" onmouseover="tdcolor(this)" style="cursor:pointer;" align="center">#E3FEB5</td> </tr> <tr> <td bgcolor="#FFD7FF" onmouseover="tdcolor(this)" style="cursor:pointer;" align="center">#FFD7FF</td> </tr> </table> </center> </body> </html>
[可先修改部分代* 再运行查看效果]
关闭窗口
打印文档
附件:
主办单位:常州市新北区奔牛初级中学
苏ICP备10201501号-3
地址:常州市新北区奔牛中天南路61号
技术支持:新北区教师发展中心、
常州万兆网络科技有限公司
访问统计