How to Make a Digg Vote Button

The Digg network uses a voting system to move popular articles up and down the popularity list. Digg has an interface that lets you place a vote button directly on your blog or website article from which users can vote for your content. The button displays the Digg logo and an arrow indicating to the user that the button votes up the article in the Digg system.

Things You'll Need

  • NotePad or other HTML editor
Show More

Instructions

    • 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.

Related Searches:

References

Comments

Related Ads

Featured