Hey Guys you must be heard about facebook share button. And I got a code which help my users to share the stuff with their friends. Here is the code below : <fb:share-button class="url" href="http://facebook.com/ Anti.Social.Development" /> But I want something like that when someone clicks on an image, this script get runs. Hmmm, that image is may be this http://myadfirst.com/images/sm/FB-share.png I am not really good at java scripts yet so anyone can please help me out. Like I want something like when someone click that button (image) that javascript get runs on the SAME PAGE ! So that the same page data gets shared and nothing else. Waiting for reply. Thanks
Hy, Try to add that code in a hidden box: <div id="dvh" style="display:none;"><fb:share-button class="url" href="http://facebook.com/ Anti.Social.Development" /></div> Code (markup): Then, when you click the image, shows that DIV: <img src="image.jpg" alt="Title" onclick="document.getElementById('dvh').style.display='block';" /> Code (markup):
Hey Bro yhs for your reply but I m getting this error after applying your codes : Parse error: syntax error, unexpected T_STRING waiting for ur reply on that. thx