STEP 1: Copy and paste the html code below
to your web page.
<p>
<center><script type="text/javascript">
(function() {
var d = document,
l = d.location,
e = encodeURIComponent,
u = e(l.href),
t = e(d.title);
// implied global
socializeIt = function(where)
{
var url;
if (where == 'Buzz')
{
url =
'http://buzz.yahoo.com/submit?submitUrl='+ u +'&t=' + t;
}
else if (where == 'del.icio.us')
{
url =
'http://del.icio.us/post?v=4&noui&jump=close&url=' + u +
'&title=' + t;
}
else if (where == 'Facebook')
{
url =
'http://www.facebook.com/share.php?u='+ u +'&t=' + t;
}
else if (where == 'Google')
{
url =
'http://www.google.com/ig/adde?moduleurl=www.google.com/ig/modules/bookmarks.
xml&hl=en/u='+ u +'&t=' + t;
}
else if (where == 'Myspace')
{
url =
'http://www.myspace.com/Modules/PostTo/Pages/?u='+ u +'&t=' + t;
}
else if (where == 'StumbleUpon')
{
url =
'http://www.stumbleupon.com/submit?url=' + u + '&title=' + t;
}
else if (where == 'Technorati')
{
url = 'http://technorati.com/faves/?add='
+ u;
}
else
{
throw new Error ('unknown social site
"' + where + '"');
}
window.open(url, 'sharer',
'toolbar=0,status=0,width=700,height=500,resizable=yes,scrollbars=yes');
return false;
};
var sites = ['Google', 'Buzz', 'Facebook',
'Myspace', 'StumbleUpon', 'Technorati',
'del.icio.us'];
// Note that the number of elements and
order of the array of images must match
that of the sites array above.
var imgURLs = new Array();
var iLen = sites.length;
var i;
for(i = 0; i < iLen; i++)
{
imgURLs[i] = 'http://smileluckyday.blogspot.com/objects/';
}
//Google
imgURLs[0] += 'google.gif';
//Yahoo Buzz
imgURLs[1] +='yahoobuzz1.gif';
//Facebook
imgURLs[2] += 'Facebook.jpg';
//Myspace
imgURLs[3] += 'myspace.gif';
//StumbleUpon Image
imgURLs[4] += 'StumbleUpon.jpg';
//Technorati Image
imgURLs[5] += 'Technorati.jpg';
//Delicious Image
imgURLs[6] += 'del.jpg';
document.writeln('<br
clear="all"><hr><table><tbody><tr><td
rowspan="2"
nowrap><strong>Share this
page: </strong><br><span style="fontsize:
11px;"><a href="#"
onclick="window.open\(\'http://smileluckyday.blogspot.
com/help/whats-this.html\',
\'sharer\',\'toolbar=0,status=0,width=700,height=500,resizable=yes,scrollbars=yes\'\);
return false;">What\'s
This?</a></span></td>');
for (i=0; i<4; i++)
{
var site = sites[i];
var imgURL = imgURLs[i];
document.writeln('<td><a
href="#share_on_'+site+'" onClick="return
socializeIt(\''+site+'\');"><img
src="'+imgURL+'" alt="'+site+'"
style="border:0"></a></td>');
}
document.writeln('</tr><tr>');
for (i=4; i<iLen; i++)
{
var site = sites[i];
var imgURL = imgURLs[i];
document.writeln('<td><a
href="#share_on_'+site+'" onClick="return
socializeIt(\''+site+'\');"><img
src="'+imgURL+'" alt="'+site+'"
style="border:0"></a></td>');
}
document.writeln('</tr></tbody></table>');
})();
</script></center>
<hr>
</p>