onmouseover、onmouseout事件(我只有20分了啊!!) 补充一下,我还要在行间单击时,产生相应的事件<tr ............>该怎么写。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <tr onmouseover="dochange" onmouseout="dorestore"> <style>tr{on:expression(this.onmouseover=function(){this.bgColor='red'});out:expression(this.onmouseout=function(){this.bgColor=''})}</style><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>灰豆宝宝.net</td><td>灰豆宝宝.net</td> </tr> <tr> <td>灰豆宝宝.net</td><td>灰豆宝宝.net</td> </tr> <tr> <td>灰豆宝宝.net</td><td>灰豆宝宝.net</td> </tr> <tr> <td>灰豆宝宝.net</td><td>灰豆宝宝.net</td> </tr> </table> <table><tr onmouseover=style.color="#ff0000" onmouseout=style.color="#ffffff" onclick="alert()"><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td></tr></table> javascript的事件处理和程序的异常处理(try..catch)类似,从事件开始处向外直到找到处理代码在td内产生的事件,首先寻找td的处理代码,没有就到tr找,以此类推 expression是什么意思啊,我查遍了JS手册都没找到。 js画图 我多次见过这样的下载站,谁能帮我找找源码 javascript转化五笔码,求教! css选择器问题----或的问题 关于添加播放列表的!求救!再现等待!急啊! 程序中止用什么语句?? 急问!有关连动下拉框的问题 怎样将form里的对象替换掉? 关于列表框的问题 再请教!显示子窗口时,不能对父窗口操作,怎么实现呢? 在线紧急求助:htc文件无法引用是咋回事? 求救 网页全屏显示
tr{on:expression(this.onmouseover=function(){this.bgColor='red'});out:expression(this.onmouseout=function(){this.bgColor=''})}
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>灰豆宝宝.net</td><td>灰豆宝宝.net</td>
</tr>
<tr>
<td>灰豆宝宝.net</td><td>灰豆宝宝.net</td>
</tr>
<tr>
<td>灰豆宝宝.net</td><td>灰豆宝宝.net</td>
</tr>
<tr>
<td>灰豆宝宝.net</td><td>灰豆宝宝.net</td>
</tr>
</table>
<tr onmouseover=style.color="#ff0000" onmouseout=style.color="#ffffff" onclick="alert()"><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td><td>aaa</td></tr>
</table>
在td内产生的事件,首先寻找td的处理代码,没有就到tr找,以此类推