* Graham * Lordeagle This is my version
it takes the page title splits it up at the spaces and creates a search link for each word
<div data-xtcontainer="container" class="xt_container" id="tag"></div>
<script>
var pageTitle = document.title;
tags = pageTitle.split(" ");
var target=document.getElementById('tag');
for (i=0;i<tags.length;i++ ){
var link= document.createElement("a");
link.setAttribute('href', 'http://eaglenet.xtgem.com/search?q='+tags[i]);
link.setAttribute('class', 'xt_button');
var text = document.createTextNode(tags[i]); 
link.appendChild(text);
target.appendChild(link);
}
</script>

Copy code

http://auldphart.yn.lt/tagtest
2015-08-31 00:13 (edited 2015-08-31 00:31 by Graham ) · (0)

Online: Guests: 1