summaryrefslogtreecommitdiff
path: root/bin/temp.js
blob: 51585b4abb1889a753d77b9a43602e88e4e4da35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var targetDiv = document.getElementById("tag_cloud_header")
var ul = document.createElement("ul");
var links = [ "/u:luxagraf/t:luxagraf/t:@post/", "/u:luxagraf/t:%2523lhp/t:@post/", "/u:luxagraf/t:%2523flw/","/u:luxagraf/t:%2523rei/t:@post/"]
var text = ["Luxagraf Post Research", "LongHandPixels Post Research", "Freelance Writing Ideas", "REI Post Research"];
for (var i=0; i<links.length; i++) {
    var li = document.createElement("li");
    var link = document.createElement("a");
    link.setAttribute('href',links[i]);
    link.innerHTML = text[i];
    li.appendChild(link);
    ul.appendChild(li);
}
targetDiv.appendChild(ul);