Blogger Themes

Wednesday, 30 November 2011

>How to create watermark of copyright automatically on images

>
Hello everyone
Have you seen this in sites ?


here sample is the watermark
Like this you can make your images with your name or blog's name
Here is what you have to do

Go to blogger->design edit html->find </head>
Before it paste the following code


<script type='text/javascript'>
function addLink() {
    var body_element = document.getElementsByTagName('body')[0];
    var selection;
    selection = window.getSelection();
    var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright Geekspot.in - All Rights Reserved"; // 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>



[Via]
Share on :

2 comments:

Muhammad Hassan said...

>Thanks....Cool Template...

ratownik medyczny said...

Pretty nice post. I just stumbled upon your weblog and wanted to say that I've really enjoyed browsing your blog posts. After all I?ll be subscribing to your feed and I hope you write again very soon!

Post a Comment

 
© Copyright TechRio 2011 - Some rights reserved | Powered by Blogger.com.
Template Design by Herdiansyah Hamzah | Published by Borneo Templates and Theme4all