タグクラウド
";
return I;
};
this.updateHTML = function(id) {
var left =(this.x*cloudRad+cloudWidth /2)-this.width /2;
var top =(this.y*cloudRad+cloudHeight/2)-this.height/2;
var sfont=this.f*((this.z+1)/2*(1-perspective)+perspective);
dtag[id].style.left= left + "px";
dtag[id].style.top = top + "px";
dtag[id].style.fontSize= sfont + "px";
if (atag[id].href != this.link) {
atag[id].href = this.link;
atag[id].innerText = this.tag;
}
var clrs = "";
if (this.isOnMouse) {
clrs = linkColor;
}
else {
var clr = Math.round(lightColor-(this.z+1)/2*(lightColor-darkColor));
clrs = clr.toString(16); // 16進数文字列に変換
clrs = "#" + clrs+clrs+clrs;
}
atag[id].style.color = clrs;
this.width = dtag[id].offsetWidth;
this.height = dtag[id].offsetHeight;
};
}
// -->