Snack's 1967
Login
·
Signup
Home
»
Coding Help
»
XtGem coding help
»
Mowi Needs Help
» View post
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 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>
note that if the variable that refers to the parsed file name is not
{_$name|}
then change to the correct value
#
2017-05-16 08:56 ·
(0)
Home
»
Coding Help
»
XtGem coding help
»
Mowi Needs Help
» View post
Online: Guests: 1
Log in