引用 | 編輯
netman
2009-09-03 00:47 |
樓主
|
||
x0
【插件資訊】插件名稱:簽名檔增加隱藏開關7.0 適用版本:7.0 語言編碼:通用 插件作者:piyr11 版權所屬:piyr11 原帖連結:http://www.webmail.idv.tw/viewthread.php?tid=16962&extra=page%3D1 【插件說明】 簽名檔增加隱藏開關7.0 viewthread_node.htm 找複製程式 <table cellspacing="0" cellpadding="0"> <tr> <td> $post[signature] </td> </tr> </table> <script type="text/javascript"> function nextObj(o){ var obj=o.nextSibling; while(obj.nodeType!=1){ obj=obj.nextSibling; } return obj; } function preObj(o){ var obj=o.previousSibling; while(obj.nodeType!=1){ obj=obj.previousSibling; } return obj; } function signView(o){ var sign=preObj(o); if(sign.style.display=="none"){ sign.style.display="block"; o.innerHTML="點擊隱藏簽名"; o.title="點擊隱藏簽名"; }else{ sign.style.display="none"; o.innerHTML="點擊顯示簽名"; o.title="點擊顯示簽名"; } } </script> <style type="text/css"> /*帖子簽名*/ .signbtn{ background:#fafafa; border:1px #ccc dashed; cursor:pointer; color:#999; margin:5px; width:100px; text-align:center; } /*end*/ </style> <table cellspacing="0" cellpadding="0" style="display:none;"> <tr> <td>$post[signature]</td> </tr> </table> <div class="signbtn" title="點擊顯示簽名" onclick="signView(this)"> 點擊顯示簽名 </div> x1
|