资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
网易首页的新闻代码
<html> <head> <title> New Document </title> <style> td { font-family: 宋体; font-size: 9pt;} .ooib { border-width: 1px; border-style: none solid solid; border-color: #CC3333; background-color: #E4E5EE;} .ooih td { border-width: 1px; padding: 0 5; } .ooihj { color: #CC3333; background-color: #E4E5EE; border-style: solid solid none; border-color: #CC3333; cursor: hand} .ooihs { color: #6600CC; background-color: #ccccFF; border-style: solid; border-color: #6600CC #6600CC #CC3333; cursor: hand} .ooihx { border-style: none none solid; border-color: #CC3333; } </style> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20language%3D%22JavaScript%22%3E%20%0D%0Afunction%20ghbq(td)%20%0D%0A%7B%20%0D%0A%20%20var%20tr%20%3D%20td.parentElement.cells%3B%20%0D%0A%20%20var%20ob%20%3D%20obody.rows%3B%20%0D%0A%20%20for(var%20ii%3D0%3B%20ii%3Ctr.length-1%3B%20ii%2B%2B)%20%0D%0A%20%20%7B%20%0D%0A%20%20%20%20tr%5Bii%5D.className%20%3D%20(td.cellIndex%3D%3Dii)%3F%22ooihj%22%3A%22ooihs%22%3B%20%0D%0A%20%20%20%20ob%5Bii%5D.style.display%20%3D%20(td.cellIndex%3D%3Dii)%3F%22block%22%3A%22none%22%3B%20%0D%0A%20%20%7D%20%0D%0A%7D%20%0D%0A%3C%2Fscript%3E"> </head> <body> <table class="ooih" border="0" cellspacing="0" cellpadding="0" width="400" height="19"> <tr> <td class="ooihj" nowrap onmouseover="ghbq(this)">标签一</td> <td class="ooihs" nowrap onmouseover="ghbq(this)">标签二</td> <td class="ooihs" nowrap onmouseover="ghbq(this)">标签三</td> <td class="ooihs" nowrap onmouseover="ghbq(this)">标签四</td> <td class="ooihx" width="100%"> </td> </tr> </table> <table class="ooib" id="obody" border="0" cellspacing="0" cellpadding="0" width="400" height="300"> <tr> <td> 标签内容一 </td> </tr> <tr style="display: none"> <td> 标签内容二 </td> </tr> <tr style="display: none"> <td> 标签内容三 </td> </tr> <tr style="display: none"> <td> 标签内容四 </td> </tr> </table> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程