The best magazine
How to Make a Digg Vote Button
- 1). Right-click the HTML file you want to use to display the Digg button. Click "Open With," then click your HTML editor.
- 2). Add the JavaScript block of code to your website. Copy and place the following code in the header section of the HTML page:
<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script> - 3). Add the button to your code. Scroll down the page to where you want the button to display. Add the following code to add the button:
<a class="DiggThisButton DiggMedium"></a> - 4). Save the file and open it in your Web browser to test the new button and review the changes.
Source: ...