<script language=javascript> Start of automatic COPY code function Mm_findobj (n, D) {//v4.0 var p,i,x; if (!d) d=document; if ((P=n.indexof ("?")) >0&&parent.frames.length) { D=parent.frames[n.substring (p+1)].document; N=n.substring (0,p);} if (!) ( X=d[n]) &&d.all) x=d.all[n]; for (i=0;! x&&i<d.forms.length;i++) X=d.forms[i][n]; for (i=0;! x&&d.layers&&i<d.layers.length;i++) X=mm_findobj (n,d.layers[i].document); if (!x && document.getElementById) X=document.getelementbyid (n); return x; } function JM_CC (ob) { var obj=mm_findobj (OB); if (obj) { Obj.select (); Js=obj.createtextrange (); Js.execcommand ("Copy");} Alert ("Copy the current URL successfully, please paste it into your qq/msn and recommend it to your friends!") "); } Automatic COPY code End document.write (' <b><font color=red style=font-size:14px> recommended to friends: </font></b><input name= " Page_url "value=" ' +window.location.href+ ' "size=" > <input type= "button" name= "button" class= "Button1" style= color:red value= "Copy current URL" onclick=jm_cc ("Page_url") > '); </script> |