Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 29, 2004 10:18:28 GMT
Code created by fla5hba5h[/color]
<script> // Copy Post button by Fla5hba5H // http://www.fla5hba5h.tk if(location.href.match("action=post")||location.href.match("action=modify")){ function copymessage(){ document.postmodify.message.createTextRange().execCommand('Copy');alert("Post contents have been copied to your clipboard.") } var tds=document.getElementsByTagName('td') for (x=0;x<tds.length;x++){ if (tds[x].align=="center"&&tds[x].innerHTML.match(/name=waction/i)){ tds[x].innerHTML+="<input type='button' onclick='copymessage()' value='Copy Post'>" }}} </script>
This code will add a button near "Post" "Preview" "Reset" that copies the content of the post.
|
|