MinhNP
(Member)
[Off] 07-10-2016 |
Code js hiện thị tiêu đề làm tag seo cho code xtgem, php mọi mã nguồn dùng được.
Tags:
<script type="text/javascript">
var th=document.title;
var url = location.href;
tags=th.split(" ");
for (var i=0;i<tags.length;i++)
{
tags[i] = tags[i].replace(/,/ig,"").replace(/-/ig,"").replace(/»/ig,"").replace(/|/ig,"");
j=(i+1);
document.write('<a href="'+url+'" rel="dofollow">'+tags[i]+' '+tags[j]+'</a>, ');
}
tag=th.split("»");
for (var i=0;i<tags.length;i++)
{
tag[i] = tag[i].replace(/»/ig,"");
document.write('<a href="#" rel="dofollow"><b>'+tag[i]+'</b></a>');
}
</script>
<script type="text/javascript">
var th=document.title;
var url = location.href;
tags=th.split(" ");
for (var i=0;i<tags.length;i++)
{
tags[i] = tags[i].replace(/,/ig,"").replace(/-/ig,"").replace(/»/ig,"").replace(/|/ig,"");
j=(i+1);
document.write('<a href="'+url+'" rel="dofollow">'+tags[i]+' '+tags[j]+'</a>, ');
}
tag=th.split("»");
for (var i=0;i<tags.length;i++)
{
tag[i] = tag[i].replace(/»/ig,"");
document.write('<a href="#" rel="dofollow"><b>'+tag[i]+'</b></a>');
}
</script>
Edited MinhNP
#1 (0) |