Weezy
Mowi7 Copy the tag css
<style>
.xt_tag
{
background: #87cefa;
color: #000;
border: 1px solid #a9a9a9;
padding: 2px 4px;
display: inline-block;
font-weight: bold;
}
</style>
Copy code
Copy the tag code
<div class="main" id="tag">Tags: </div>
<script>
var name = "{_$name|}";
tags = name.split(" ");
var target=document.getElementById('tag');
for (i=0;i<tags.length;i++ ){
var link= document.createElement("a");
link.setAttribute('href', 'http://weezywap.xtgem.com/search?anywhere=1&search='+tags[i]);
link.setAttribute('class', 'xt_tag');
link.setAttribute('style', 'font-weight:bold');
var text = document.createTextNode(tags[i]);
link.appendChild(text);
target.appendChild(link);
}
</script>
Copy code note that if the variable that refers to the parsed file name is not
{_$name|} then change to the correct value