编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛  
全能 ASP / PHP / ASP.NET 主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
发新话题
打印

我想用这个脚本实现单击按钮更换背景色,请问为什么实现不了?

我想用这个脚本实现单击按钮更换背景色,请问为什么实现不了?

<html> <head> <meta http-equiv="Content-Type"content="text/html; charset=gb2312"> <title> 我的嵌入HTML中JAVASCRIPT模板</title>

</head> <body> <h1>Using Properties</H1> <form> <input type="button" name="red" value="red" onclick='document.bgcolor="red"'> <input type="button" name="yellow" value="yellow" onclick='document.bgcolor="yellow"'> </form> </body> </html>

请各位给予指教啊

TOP

bgcolor——>>bgColor

JavaScript是分大小写的

……

TOP

这样子的啊

太谢谢你了

我一直以为它和HTML一样不区分大小写了

再次感谢你

TOP

新手,学习中,支持

TOP

新手学习中

我也新手,太多的东东处于学习中

TOP

发新话题