detect IT
maybe you have the same problems to solve ... keep smiling ;)
Showing posts with label labelcloud. Show all posts
Showing posts with label labelcloud. Show all posts

labelcloud bugfix

Posted In: , , , , . By kajdo

after some debugging i found the reason for the js-error ie reported all the time ...

here is a simple solution ... ignore the Statement 'Don't change anything past this point ----------------- ' in the script-part and replace


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
}

with

function s(a,b,i,x){
var m = 1;
var v = 1;

if(a>b){
if (Math.log(x) > 0) {
m = (a-b)/Math.log(x);
} else {
m = 1;
}
var v=a-Math.floor(Math.log(i)*m)
} else {
if (Math.log(x) > 0) {
m = (b-a)/Math.log(x);
} else {
m = 1;
}
v=Math.floor(Math.log(i)*m+a)
}

return v;
}

now you shouldn't have any problems ...
Read more...

 

Here is a short description of how to embedding a labelcloud into blogger ...

The originally script was written by phydeaux3 and modified by ... i just wrote this post to try how the syntaxhighlighter works you'll find more informations regarding this topic here (phydeaux3 &

1) CSS. Goes anywhere between the tags b:skin and /b:skin, preferably right before the end tag


/* Label Cloud Styles
----------------------------------------------- */
#labelCloud {text-align:center;font-family:arial,sans-serif;}
#labelCloud .label-cloud li{display:inline;background-image:none !important;padding:0 5px;margin:0;vertical-align:baseline !important;border:0 !important;}
#labelCloud ul{list-style-type:none;margin:0 auto;padding:0;}
#labelCloud a img{border:0;display:inline;margin:0 0 0 3px;padding:0}
#labelCloud a{text-decoration:none}
#labelCloud a:hover{text-decoration:underline}
#labelCloud li a{}
#labelCloud .label-cloud {}
#labelCloud .label-count {padding-left:0.2em;font-size:9px;color:#000}
#labelCloud .label-cloud li:before{content:"" !important}


2) Widget. Goes anywhere between b:section id="'sidebar'" and /b:section (replacing the first b:widget id="'Label1'" ... line)
















  • ()









regarding to internet explorer 6, there is a js-problem (illegal statement) but the script works fine with Safari&FF - i'll chase the problem when i find some motivation - sorry

Problem solved - here you can find what to do

Read more...