RSS

Script SEO for Blogger


Wordpress plugin that works to change every word to the keywords we have specified, and now this plugin can be installed on blogspot.

How this script works?
This script will read every word on every article, for example if we define the word "SEO" in the script, then automatically all pages that have the word "SEO" will become a link.

Apply to blogspot, follow this step :

   1. Sign into Blogger dashboard » Edit HTML
   2. Find this code </body>, copy and paste the following code above the code </body>

      <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;seo&quot;, &quot;your blog url&quot;);
      f.startScript();
      </script></b:if>

      Notes :
          * Replace the text SEO with the keywords you want.
          * Change your blog url with the address of your blog.
          * IMPORTANT!! KEYWORDS SUBMITTED ARE CASE SENSITIVE
   3. Save, Smart link SEO plugin is now installed on your blog


0 Responses to "Script SEO for Blogger"

Post a Comment

Note: Only a member of this blog may post a comment.

 
Return to top of page Copyright © 2010 | Flash News Converted into Blogger Template by HackTutors