<div class="codetitle"> <span><a style="CURSOR: pointer" data="68780" class="copybut" id="copybut68780" onclick="doCopy('code68780')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code68780"> <br><input type="button" value="1"> <br><input type="button" value="2"> <br><input type="button" value="3"><br> <br><input type="button" value="4"> <br><input type="button" value="5"> <br><input type="button" value="6"><br> <br><input type="button" value="7"> <br><input type="button" value="8"> <br><input type="button" value="9"><br> <br><input type="text" value=""> <br><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> <br><script type="text/javascript"> <BR>var items=""; <BR>jQuery(function(){ <BR>$("input:button").each(function(index){ <BR>$(this).mouseover(function(){ <BR>if(items.indexOf($('input').eq(index).val())==-1){ <BR>items+=$('input').eq(index).val(); <BR>$('input:text').val(items) <BR>} <BR>}) <BR>}) <BR>}) <BR></script> <br> </div>