<div class="codetitle"> <span><a style="CURSOR: pointer" data="59698" class="copybut" id="copybut59698" onclick="doCopy('code59698')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code59698"> <br>$(document.getElementsByTagName("a")). () { <br>if ($(this).text() == "jquerys") { <br>$(this).addClass("navTitle"); <br>} <br>}); <br> </div>