Thanks to Cyberbuff for pointing this out. I’ve become a little forgetful :( The code was (by mistake) set to get the labels from my personal blog, because I was testing it there. Get the updated code from below, and see the instruction! Sorry!
That’s “Don’t leave the page” Labels widget ;) Here’s a quick update since people asked me for it and I thought the script could use it. If you want the original without frills, check it out. This update makes a few cosmetic changes, nothing more. So most of your people won’t need to change your code. This update adds:
A +/- (toggling) sign before the label name, to give it a more hierarchical appearance. You can modify the code yourself to change the symbol to anything, I’ve marked it out in the code, but you’ll have to download it to edit it (get it from here).
A loading animated image for all your huge list of posts which take a while to load. The script pre-loads the image, so there will be no delay in showing it. But if you don’t see it, don’t worry. It just means you have a stinkin’ fast connection ;)
Add this line in (replace the previous code if you implemented the original (Sumesh pointed out a potential confusion):
<script>//<![CDATA[
var labels_blog = '<BLOGNAME>';
//]]></script>
<script type='text/javascript' src='http://aditya.vm.googlepages.com/labels.js'/>
Replace <BLOGNAME> with the name of your blog. You’ll have to edit your widget code a little. Replace the line which generates the link:
<a href='#category' onclick='javascript:showLabel(this.innerHTML)'><data:label.name/></a>
With this:
<span expr:id='data:label.name + "-tog"'>+ </span><a href='#category' onclick='javascript:showLabel(this.innerHTML)'><data:label.name/></a>
You can change the symbol within the span tags to whatever you want :) Cool? Good!
Have a good day!
