My last post contained a link to BloggerHacks and Haloscan. I thought I'd now offer my own hack involving the Haloscan trackback system. Typically when Haloscan's trackback system is added to a blog it is added as a simple link that invokes a pop-up window containing the trackback information from Haloscan (see example). It is actually very easy to embed this page inside your blog using embedded frames. I'm going to provide instructions for adding this to a template but it can easily be adapted to other systems.

First add the Haloscan JavaScript to you page as instructed to do at haloscan. Copy and paste the following code anywhere between your <HEAD> and <HEAD> tags in your page:

<script type="text/javascript" src="[your_halosan_id]"></script>

Be sure to replace [your_haloscan_id] with your haloscan id or copy the text directly form the haloscan page.

Next you will add the embedded frame. I only want the trackback page to appear on the individual entry pages so I place the following text between the tags below the comments section:

<div id="trackbacks"><a name="trackbacks"></a><h4>
<script type="text/javascript">postCountTB('<$BlogItemNumber0.9555734195746481gt;');
    <iframe width="100%" height="250" src="[your_haloscan_id]/<$BlogItemNumber0.9555734195746481gt;" title="Trackbacks" marginwidth="0" marginheight="0" width="120" height="240" border="2" frameborder="0" style="border:none;" scrolling="yes"></iframe>

Again replace [your_haloscan_id] with your haloscan id. That is mostly it, not much to it. You may notice that I have placed all the trackback code inside a <div> with an id set to trackbacks. This is so you can edit the CSS portion of your template to format the trackback section however you like it. I'm not going to go into the details of this because everyone's template is different but to start you can try coping the #comments and #comments h4 in the CSS section to #trackbacks and #trackbacks h4.