views:

43

answers:

1

I've added a Digg button to all the items in my site. The javascript required for dynamic Digg buttons is just before my </body> close tag.

<body>
    ...
    <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</body>

Everything works on pages that have the dynamic Digg buttons on them, but on pages that don't, an orphan Digg icon is floating in space at the bottom of the page.

Is this normal behaviour? How can I prevent it?

A: 

I broke down and simply took the <script> out of my base template and only put it on pages with digg buttons. Took some extra template code to make it work, but it gets rid of the "ghost" button.

Soviut