js 事件 通过内部style改变背景色(一)
来源:互联网 发布:怎么关注新的淘宝达人 编辑:程序博客网 时间:2024/05/16 17:28
<html><head><script>/*function test1(){//window.alert("ok!");}function test2(e){//window.alert("x = "+e.clientX+" y = "+e.clientY);}*/function test3(){var date = new Date();window.alert(date.toLocaleString());}function change(eobj){var mysty = document.getElementById("mystyle");if(eobj.value == "blue"){//window.alert("OK");mysty.style.backgroundColor = "blue";}else{mysty.style.backgroundColor = "pink";}}</script></head><body><input type = "button" value="当前时间" onclick = "test3()"/><div id = "mystyle" style = "width:400px;height:300px;background-color:pink">div1</div><input type = "button" value="pink" onclick = "change(this)"/><input type = "button" value="blue" onclick = "change(this)"/></body></html>
0 0
- js 事件 通过内部style改变背景色(一)
- 事件:点击按钮,改变背景色
- 改变背景色
- 对话框改变背景色
- 改变窗口背景色
- 改变Eclipse背景色
- 改变对话框背景色
- 改变对话框背景色
- UISearchBar 改变背景色
- Eclipse 改变背景色
- 改变UISearchBar背景色
- 改变图片背景色
- 改变Toast背景色
- 改变对话框背景色
- 改变Eclipse背景色
- Eclipse背景色改变
- Studio改变背景色
- 使用js改变表格行的背景色
- string 类型方法
- Hadoop的数据管理
- 谁知道怎么连接winf啊。。。。。。。。。
- 三角形
- JAVA程序执行顺序
- js 事件 通过内部style改变背景色(一)
- AOP注解日志处理简单理解
- Stingray Traffic Manager 9.0 安装教程
- linux 搭建 ftp 服务器
- source insight中 shift 组合键乱码
- js使用正则表达式
- linux下杀死进程(kill)的N种方法
- 对经典的Hough 变换的理解
- 七款实用的视图模型制作工具