<div class="htmlarea"> <textarea id="runcode72860"> <title> 스크립트 홈 www.jb51.net js 메뉴 특수효과 </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style> td { padding:5px 10px; color:#ffffff; font-weight:700; font-size:13px; } .tdBg { background-color:#ffffff; color:#000000; font-weight:700; } </style> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ff0000"> <tr> <td onclick="checkTdBg(this);">首页</td> <td onclick="checkTdBg(this);">房产频道</td> <td onclick="checkTdBg(this);">招聘求职</td> <td onclick="checkTdBg(this);">兼职</td> <td onclick="checkTdBg(this);">跳骚市场</td> <td onclick="checkTdBg(this);">宠物</td> <td onclick="checkTdBg(this);">交友</td> <td onclick="checkTdBg(this);">车辆</td> <td onclick="checkTdBg(this);">生活黄页</td> </tr> </table> </textarea> <br><input onclick="runEx('runcode72860')" type="button" value="运行代码"><input onclick="doCopy('runcode72860')" type="button" value="复制代码"> <input onclick="doSave(runcode72860)" type="button" value="保存代码"> <a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl A 모두 선택 참고: </a>외부 J를 도입해야 하는 경우 실행하려면 새로 고쳐야 합니다 </div>]<script language="JavaScript"> <!-- function checkTdBg(obj){ var obj_td = document.getElementsByTagName('td'); for( var int_i = 0 ; int_i < obj_td.length ; int_i ++ ){ if( obj_td[int_i] == obj ){ obj_td[int_i].className = 'tdBg'; } else{ obj_td[int_i].className = ''; } } } //--> </script>