|

Di Copy Paste?

Script Memberikan Judul Artikel Ketika Di Copy Paste

1.Login ke blogger.
2.Dihalaman dasbor klik Rancangan » Edit HTML.
3- Ctrl+F
4.Masukkan script ini dibawah kode <head>.

<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright http://1xmabsul08.blogspot.com/ Under Common Share Alike Atribution"; // change this if you want
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}document.oncopy = addLink;
</script>

Ganti Yang berwarna merah dengan alamat blog/web sumbrnya ada Disini

Posted by EmThree on 10.28. Filed under . You can follow any responses to this entry through the RSS 2.0. Feel free to leave a response

0 komentar for "Di Copy Paste?"

Leave a reply

Blog Archive

Labels

Recently Commented

Recently Added