<td width="33%" onclick="location.href='2.html'" onmouseover="this.bgcolor=#ff0000" onmouseout="this.bgcolor=#00ff00">2</td>
解决方案 »
- [在线等]jq获取VML的oval属性报错
- 向高手请教个问题:关于facebook上发件人文本框的效果
- display循环显示问题
- 请高手指点,关于如何记录页面位置的问题
- 求个jquery封装,加载动画始终居中显示,代码已有,不会封装
- 请教关于WebCalendar日历控件的问题
- jquery 获取父级元素编号
- 奇了怪了:子画面怎么就死活不能关闭了呢?
- 请问如何用javascript控制播放音乐,不是背景音乐,我能控制它何时放,谢谢,在线等!
- ios下qq浏览器jquery ajax请求state为0
- bzscs进来领100分,谢谢! 如何用javascript读写cookeis?
- 如何使用javascript动态设置checkbox的checked属性?昨天一夜没睡,在线等,解决马上结贴!不胜感激!!!
<tr onclick="" bgColor='#EEEEFF'>
<td width="33%">1</td>
<td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
<td width="34%">3</td>
</tr>
<tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
<td width="33%">4</td>
<td width="33%">5</td>
<td width="34%">6</td>
</tr>
</table>注意:
在上一行中点击1和3时入a.html,点击2时才进入2.html
下一行整行中点击都会进入b.html
刚才少复制了一个location.href='a.html'<table border="1" width="100%">
<tr onclick="location.href='a.html'" bgColor='#EEEEFF'>
<td width="33%">1</td>
<td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
<td width="34%">3</td>
</tr>
<tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
<td width="33%">4</td>
<td width="33%">5</td>
<td width="34%">6</td>
</tr>
</table>
不过,好象不行呀
我都是进入a.html
<tr bgColor='#EEEEFF'>//去掉 onclick="location.href='a.html'"再也进入不了a.html了
<td width="33%">1</td>
<td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
<td width="34%">3</td>
</tr>
<tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
<td width="33%">4</td>
<td width="33%">5</td>
<td width="34%">6</td>
</tr>
</table>
<tr ondblclick="location.href='a.html'" bgColor='#EEEEFF'>
<td width="33%">1</td>
<td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
<td width="34%">3</td>
</tr>
<tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
<td width="33%">4</td>
<td width="33%">5</td>
<td width="34%">6</td>
</tr>
</table>应该可以的啊。 双击第一行进入a.html 单击 第一行第二个单元格进入2.html
单击第二行进入b.html