Translate

Selasa, 05 Juni 2012

SCRIPT SECRETS SEO

Share on :

Here's how it works: 
The script will read every word on our posts, for example if we specify the keyword 'blog', then every word 'blog' dipostingan we will be a link to the url that will we have set as well. 

script like this:
<b:if cond='data:blog.url != data:blog.homepageUrl'>
<script type='text/javascript'>
function autoLink(){
    this.keywdHref = new Object();
    this.add = function(keyword, href){
        if(keyword.substr(0,1) != &quot; &quot;){keyword = &quot; &quot; + keyword;}
        this.keywdHref[keyword] =  href;
    }
    this.createAnchor = function(){
        var objs = document.getElementsByTagName(&quot;div&quot;);
        for(var i=0; i&lt;objs.length; i++){
            var obj = objs[i];
            if(obj.className.indexOf(&quot;post-body&quot;)&gt;-1){
                var content = obj.innerHTML;
                for(var keyword in this.keywdHref){
                    var href = this.keywdHref[keyword];
                    var newstr = content.replace(keyword, &quot;&lt;a href=&#39;&quot;+href+&quot;&#39;&gt;&quot;+keyword+&quot;&lt;/a&gt;&quot;, &quot;gi&quot;);
                    obj.innerHTML = newstr;
                    content = newstr;
                }
            }
        }
    }
    this.startScript = function(){
        var onLoad = window.onload;
        window.onload = function(){
            if(onLoad){onLoad();}
            setTimeout(&quot;f.createAnchor()&quot;, 100);
        }
    }
}
</script>
<script type='text/javascript'>
var f = new autoLink();
f.add(&quot;
tutorial &quot;, &quot; http://www. sampristi.blogspot.com/&quot;);
f.startScript();
</script>
</b:if>

Now note that is red 
please replace with your desired keywords,, just one word
  only if it does not want to banned gugle om ma. The blue color please replace with your own blog url.  

For installation script is pretty easy to please
place the above script code </ body>

So first, yes, if there is less ntar ditambahin. 

Oh yes remember, the word is not case sensitive, which means the word BLOG with different lo's blog.

Tidak ada komentar:

Posting Komentar