CaL Badge Network: Sample Code

When you request to join the CaL Badge Network, you will need to install a piece of code to your blog. To help save time for all of us, we request you to please try any of the following codes,  using the ‘Name’ and ‘ZoneID’ mentioned below and get the badge working on your blog. When you believe it is working, please mail and let us know your name, email address, blog name and blog URL. We will then share with you your own ‘Name’ and ‘ZoneID’, which you’ll just need to replace in the code you installed in your blog and you’re ready. :)

Your ‘Name’ is: a0e4cd5c
Your ‘ZoneID’ is: 284

There are three codes below. You can use any of them. To use them, first copy/paste the code you want to use into a notepad, then replace all the MMMMMMMM with the “Name” provided to you and all the XX with the “ZoneID” provided to you. If your site address begins with ‘https’, please replace all the http in the code you’re using, with ‘https‘, without the single quotes.

Usually this code simply needs to be inserted in a text widget on your blog’s sidebar. If you’re using WordPress, please use the Custom HTML Widget (Dashboard->Appearance->Widgets). The badge should be as high as possible in the sidebar of your site. Please do not place it in the footer.

Code 1 – IFRAME

<iframe id='MMMMMMMM' name='MMMMMMMM' src='' frameborder='0' scrolling='no' width='250' height='250'>
<a href='' target='_blank'>
<img src=';cb=1122334&amp;n=MMMMMMMM' border='0' alt='' />


<a href="" target="_blank">
<img src="" border="0" alt="" />


<script type='text/javascript'><!--//<![CDATA[
 var m3_u = (location.protocol=='https:'?'':'');
 var m3_r = Math.floor(Math.random()*99999999999);
 if (!document.MAX_used) document.MAX_used = ',';
 document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
 document.write ("?zoneid=XX");
 document.write ('&amp;cb=' + m3_r);
 if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
 document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
 document.write ("&amp;loc=" + escape(window.location));
 if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
 if (document.context) document.write ("&context=" + escape(document.context));
 if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
 document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href=';cb=1122334' target='_blank'><img src=';cb=1122334&amp;n=MMMMMMMM' border='0' alt='' /></a></noscript>