This link has been bookmarked by 51 people . It was first bookmarked on 24 Sep 2007, by Kevin Champion.
-
14 Dec 11
-
17 Dec 10
-
14 Dec 10
-
12 Dec 10
-
11 Dec 10
-
10 Dec 10
-
17 May 10
-
07 Feb 10
Bryan Hall<b:widget id='Label1' locked='false' title='Label Cloud' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<div id='labelCloud'/>
<script type='text/javascript'>
// Don't change anything past this point -----------------
// Cloud function s() ripped from del.icio.us
function s(a,b,i,x){
if(a>b){
var m=(a-b)/Math.log(x),v=a-Math.floor(Math.log(i)*m)
}
else{
var m=(b-a)/Math.log(x),v=Math.floor(Math.log(i)*m+a)
}
return v
}
var c=[];
var labelCount = new Array();
var ts = new Object;
<b:loop values='data:labels' var='label'>
var theName = "<data:label.name/>";
ts[theName] = <data:label.count/>;
</b:loop>
for (t in ts){
if (!labelCount[ts[t]]){
labelCount[ts[t]] = new Array(ts[t])
}
}
var ta=cloudMin-1;
tz = labelCount.length - cloudMin;
lc2 = document.getElementById('labelCloud');
ul = document.createElement('ul');
ul.className = 'label-cloud';
for(var t in ts){
if(ts[t] < cloudMin){
continue;
}
for (var i=0;3 > i;i++) {
c[i]=s(minColor[i],maxColor[i],ts[t]-ta,tz)
}
var fs = s(minFontSize,maxFontSize,ts[t]-ta,tz);
li = document.createElement('li');
li.style.fontSize = fs+'px';
li.style.lineHeight = '1';
a = document.createElement('a');
a.title = ts[t]+' Posts in '+t;
a.style.color = 'rgb('+c[0]+','+c[1]+','+c[2]+')';
a.href = '/search/label/'+encodeURIComponent(t);
if (lcShowCount){
span = document.createElement('span');
span.innerHTML = '('+ts[t]+') ';
span.className = 'label-count';
a.appendChild(document.createTextNode(t));
li.appendChild(a);
li.appendChild(span);
}
else {
a.appendChild(document.createTextNode(t));
li.appendChild(a);
-
31 Jan 10
-
16 Jul 09
-
24 Mar 09
-
22 Mar 09
-
18 Jan 09
-
11 Jun 08
-
27 Mar 08
-
02 Mar 08
-
11 Feb 08
-
24 Jan 08
-
29 Nov 07
-
09 Nov 07
-
24 Sep 07
-
04 Sep 07
-
01 Apr 07
-
29 Mar 07
vinigorgulhoexemplo de site com visual vintage
-
20 Feb 07
-
10 Feb 07
-
03 Feb 07
-
Code for Beta Blogger Label Cloud Tuesday, September 05, 2006 Beta, Blogger, Javascript Due to overwhelming demand (ok, it was one person) I've gone ahead and wrote up the code and explanations on how to setup and use the highly desireable Label Cloud for Blogger in Beta. I think everything is correct there, but if you try to set it up and run into any problems I blame Avatar. :-) I've set the page up off-site since I don't feel like mucking with code in the Blogger post editor at the moment. And if you have any questions feel free to ask. Pay close attention to the BACKUP YOUR TEMPLATE before proceding notice. Here's the link to the setup and instructions...
-
Code for Beta Blogger Label Cloud Tuesday, September 05, 2006 Beta, Blogger, Javascript Due to overwhelming demand (ok, it was one person) I've gone ahead and wrote up the code and explanations on how to setup and use the highly desireable Label Cloud for Blogger in Beta. I think everything is correct there, but if you try to set it up and run into any problems I blame Avatar. :-) I've set the page up off-site since I don't feel like mucking with code in the Blogger post editor at the moment. And if you have any questions feel free to ask. Pay close attention to the BACKUP YOUR TEMPLATE before proceding notice. Here's the link to the setup and instructions...
-
-
16 Jan 07
-
14 Jan 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.