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