Project – SR_DiggIt

21 Jun 2010 by admin, No Comments »

Name: SR_DiggIt

Release: 1.0

Description:
This plugin allows you to add a simple Digg button to your website. When clicked it will allow the user to post the current page URL to the social news website Digg.

Instructions:

1. Copy the code below:

<!– SR_DiggIt Start –><script type=”text/javascript”>function submitdigg() {var url = window.location;var diggurl = ‘http://digg.com/submit?url=’+url;window.location = diggurl;}function togglebutton() {var button = document.getElementById(‘digglink’);if(button.src==’http://www.samruston.co.uk/projects/SR_DiggIt/images/button.png’){button.src = “http://www.samruston.co.uk/projects/SR_DiggIt/images/button_hover.png”;} else {button.src = “http://www.samruston.co.uk/projects/SR_DiggIt/images/button.png”;}}</script><style type=”text/css”>#digglink {cursor:pointer;}
#diggcontainer {border:1px #666 solid;background-color:#CFCFCF; font-family:Arial; font-size:10px; -moz-border-radius:6px; -webkit-border-radius:6px; width:125px;padding:4px;text-align:center;}#sponsorlink {color:#333; text-decoration:none; font-family:Arial; font-size:10px;}</style><div id=”diggcontainer”><img src=”http://www.samruston.co.uk/projects/SR_DiggIt/images/button.png” onmouseover=”togglebutton();” onmouseout=”togglebutton();” id=”digglink”  alt=”Digg It!” title=”Digg It!” onclick=”submitdigg();”><br>Created By <a href=”http://www.samruston.co.uk” id=”sponsorlink”>Sam Ruston</a></div><!– SR_DiggIt End –>

2. Insert it into the desired part of your website.

3. Test it out!

Tags: , , , , , ,

Leave a Reply

Search

Advertisement


Recent Posts

Advertisement


Digg

Digg It!
Created By Sam Ruston

Tags

3 ajax animation Apple Application bar basics browser build building Chrome coding css css3 design fade float Google html internet ipad ipod javascript jquery left mysql new online page php programming projects right Ruston Safari Sam screen script simple tip touch tutorial web Website welcome