特效预览区
代码复制区
<style> .highlighttext{ background-color:yellow; font-weight:bold; } </style> </head> <form name=test> <input type="button" value="全选并复制" onclick="javascript:HighlightAll('test.select1')" > <br> <textarea name="select1" rows=3 cols=46 >你好,欢迎使用精品JAVA特效全集</textarea> </form> <script language="Javascript"> <!-- var copytoclip=1 function HighlightAll(theField) { var tempval=eval("document."+theField) tempval.focus() tempval.select() if (document.all&©toclip==1){ therange=tempval.createTextRange() therange.execCommand("Copy") window.status="全选并复制!" setTimeout("window.status=''",1800) } } //--> </script> onmouseover=this.focus() onfocus=this.select()
特效制作:52600 版权所有