Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Tag Cloud Label Cloud

Tag Cloud Label Cloud

Ratings:

5.0

(1)
|Views: 81 |Likes:
Published by cahPamulang
Membuat Daftar Label di Blogspot
Membuat Daftar Label di Blogspot

More info:

Published by: cahPamulang on Aug 24, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

11/16/2010

pdf

text

original

 
Tag Cloud / Label Cloud
Comments and Problems can be reported at the home post for this atCode for New Blogger Tag Cloud / Label CloudHere is the code and setup information to use the Label Cloud in New Blogger.First you obviously have to have a blog on New Blogger, and you MUST be using the
layoutstemplates
,(this isn't available for classic templates, or FTP published blogs ) and you must have some postslabeled already. (There needs to be at least ONE label with more than ONE entry or the scripts hit a bug - so have at least one label with more than one entry before starting).
Make sure you backup your template before making any changes!
Log into Blogger and go to your layouts section. On the 'Page Elements' setup pagemake sure you have a label widget already installed where you want it (it can be moved aroundlater).
Then go to the Edit HTML settings and leave the widgets NOT exapanded.
It will makethings easier to deal with. Now the code comes in 3 parts. A section for the stylesheet, a configurations section,and then the actual widget itself.The first part to put in is the stylesheet section. The following code needs to be copiedand inserted into your stylesheet, which in the layouts is marked out by the <b:skin> tags.Easiest thing to do is find the closing skin tag
]]></b:skin>
and place the code right
BEFORE
that.Here it is, copy and paste without modification right now. I'll explain what can be tweakedlater./* Label Cloud Styles----------------------------------------------- */#labelCloud {text-align:center;font-family:arial,sans-serif;}#labelCloud .label-cloud li{display:inline;background-image:none !important;padding:05px;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}--------------------------------------------------------This next section is the configuration section for the Cloud. It also goes in the headof the template, but outside of the stylesheet part. Easiest thing to do again is to findthe closing stylesheet tag
]]></b:skin>
But this time place the code right
AFTER 
that line, but
BEFORE
the
</head>
tag. Here it is.--------------------------------------------<script type='text/javascript'>// Label Cloud User Variablesvar cloudMin = 1;var maxFontSize = 20;var maxColor = [0,0,255];var minFontSize = 10;var minColor = [0,0,0];var lcShowCount = false;</script>--------------------------------------------All of these settings can be changed but I'll explain them in a moment. The defaults will work for now. Now the widget itself. Scroll down and find the label widget in your sidebar. It should look something like this.
<b:widget id='Label1' locked='false' title='Labels' type='Label'/>
Copy the following code (from beginning widget tag to ending widget tag) and replacethe line above with it.
 
<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.usfunction s(a,b,i,x){if(a&gt;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 = &quot;<data:label.name/>&quot;;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] &lt; cloudMin){continue;}for (var i=0;3 &gt; i;i++) {c[i]=s(minColor[i],maxColor[i],ts[t]-ta,tz)}var fs = s(minFontSize,maxFontSize,ts[t]-ta,tz);

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->