event.target
event.target.tagName
event.target.parentNode
event.target.className
event.target.tagName
event.target.parentNode
event.target.className
解决方案 »
- 求一验证正浮点数的正则表达式
- 下面这段JS看不懂,谁能帮忙看下
- 求JS广告幻灯片源码
- 在文本输入框加了htmlarea 文本输入框却没有输入焦点
- 怎么样固定弹出窗口大小?
- 请问在RDS对象中怎么写出oracle的连接字符串connect与server属性
- 马上解决,马上给分!急急急...NS中写一个"document.focus = fun1;"为什么没有用?
- 如何用Javascript实现vbscript中CreateObject的功能?
- 关于文件选择对话框!在线等待...
- javascript中如何判断同一个form中的同名radiobutton那个被选中(用button提交是进行判断)?
- javascript中的event的含义
- 页面的消息系统:attachEvent函数讨论。
<head>
<style type="text/css">
.c1 { color:red;}
.c2 { color:blue;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onclick="with(event.target)className=className=='c1'?'c2':'c1'">
<table border="1">
<tr>
<td class="c1">操你妈!垃圾浏览器!netscape!mozilla!opera!</td>
</tr>
</table>
</body>
</html>
写这么些东西,用了好长时间
<html>
<head>
<style type="text/css">
.c1 { color:red;}
.c2 { color:blue;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body onclick="with(event.target)className=className=='c1'?'c2':'c1'">
<table border="1">
<tr>
<td class="c1">操你妈!垃圾浏览器!netscape!mozilla!opera!</td>
</tr>
</table>
</body>
</html>