<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) != " "){keyword = " " + keyword;}
this.keywdHref[keyword] = href;
}
this.createAnchor = function(){
var objs = document.getElementsByTagName("div");
for(var i=0; i<objs.length; i++){
var obj = objs[i];
if(obj.className.indexOf("post-body")>-1){
var content = obj.innerHTML;
for(var keyword in this.keywdHref){
var href = this.keywdHref[keyword];
var newstr = content.replace(keyword, "<a href='"+href+"'>"+keyword+"</a>", "gi");
obj.innerHTML = newstr;
content = newstr;
}
}
}
}
this.startScript = function(){
var onLoad = window.onload;
window.onload = function(){
if(onLoad){onLoad();}
setTimeout("f.createAnchor()", 100);
}
}
}
</script>
<script type='text/javascript'>
var f = new autoLink();
f.add("SEO", "http://blogedek.blogspot.com/");
f.add("blog (keyword kedua)", "http://blogedek.blogspot.com/ (URL kedua)");
f.startScript();
</script>
</b:if>
You Are Reading
0
Langganan:
Posting Komentar (Atom)
Labels 1
- facebook (2)
- software (1)
- trips and trik (2)
Labels 2
- facebook (2)
- software (1)
- trips and trik (2)
0 komentar:
Posting Komentar