Archive for category Javascript

How To Add Facebook Like Button To Website

Posted by on Sunday, 26 December, 2010
Facebook Like Button

Facebook Like Button

As you know, facebook allow us to paste its like button to our website for free. But I am pretty sure many people still don’t know how to add it in to their website so now I am going to show you how to add facebook like button to your website with a simple edit, copy and paste step.

Ok, now you just have to copy code below and paste it to notepad. Then replace PUT_YOUR_LINK_HERE to your website link that you like to people like it.

<script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like href=”PUT_YOUR_LINK_HERE” ref=”PUT_YOUR_LINK_HERE”></fb:like>

For example:

<script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like href=”http://techofsoft.com” ref=”http://techofsoft.com”></fb:like>

or

<script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like href=”http://techofsoft.com/facebooks-emoticons-for-facebook-chat/” ref=”http://techofsoft.com/facebooks-emoticons-for-facebook-chat/”></fb:like>

After you change it, you can copy and paste it to your website.

And you will get facebook like button like on the top of this post. If you like it, please click it.

If you like to know more detail, you can go to http://developers.facebook.com/docs/reference/plugins/like

Word Count Generator

Posted by on Wednesday, 16 December, 2009

Word Count Generator

Just copy code below and paste to where you like to put it.

Example : Word Count Generator

<!–
Word count script
By Tech Of Soft (http://techofsoft.com)
–>
<form method=”POST” name=”wordcountgenerator”>
<script language=”JavaScript”>
function countword()
{
var formcontent=document.wordcountgenerator.wordcountgenerator2.value
formcontent=formcontent.split(” “)
document.wordcountgenerator.wordcountgenerator3.value=formcontent.length
}
</script>
<table border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td width=”100%”><textarea rows=”12″ name=”wordcountgenerator2″ cols=”60″ wrap=”virtual”></textarea></td>
</tr>
<tr>
<td width=”100%”>
<div align=”right”>
<p>
<input type=”button” value=”Calculate Words” onClick=”countword()”>
<input type=”text” name=”wordcountgenerator3″ size=”20″>
</p>
<div align=”center”>
<center>
<p>
<font face=”arial” size=”-2″>Source Code by</font>
<font face=”arial, helvetica” size=”-2″>
<a href=”http://techofsoft.com”>Tech Of Soft</a></font>
</p>
</center>
</div>
</div>
</td>
</tr>
</table>
</form>