saad_4rmpk
03-14-2009, 11:30 PM
hi all my name is saad and i am new here my problem is that :
I am going to build a free social and bookmarking button-tool like addthis.com, sharethis.com, socialtwist.com . I would like you to correct the code so to anyone can save its visited website url in the specific social web service. The tool will work inside on my server. The users will take only my button code (not the txt file) and paste it inside the source of their website. The tricky part is that when the users click on the button, a popup opens (the button code) and must save the url referral of the website where the code was pasted and not the url of my website where the button will working.
my code is :
<div id="rollimg15" style="position:absolute; overflow:hidden; left:129px; top:266px; width:115px; height:26px; z-index:19">
<a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rollimg15','','images/o_on.gif',1)" href="javascript:void(window.open('http://buzz.yahoo.com/submit?submitUrl=encodeURIComponent'))" title="Add this website to Yahoo! Buzz">
<img name="rollimg15" onLoad="MM_preloadImages('images/o_on.gif')" width=115 height=26 alt="Add this website to Yahoo! Buzz" border=0 src="images/o_off.gif">
</a></div>
The code below saves the url from the existing window to the specific social web service:
javascript:location.href='http://buzz.yahoo.com/submit?submitUrl='+encodeURIComponent(document.location.href)+' '"
I am going to build a free social and bookmarking button-tool like addthis.com, sharethis.com, socialtwist.com . I would like you to correct the code so to anyone can save its visited website url in the specific social web service. The tool will work inside on my server. The users will take only my button code (not the txt file) and paste it inside the source of their website. The tricky part is that when the users click on the button, a popup opens (the button code) and must save the url referral of the website where the code was pasted and not the url of my website where the button will working.
my code is :
<div id="rollimg15" style="position:absolute; overflow:hidden; left:129px; top:266px; width:115px; height:26px; z-index:19">
<a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rollimg15','','images/o_on.gif',1)" href="javascript:void(window.open('http://buzz.yahoo.com/submit?submitUrl=encodeURIComponent'))" title="Add this website to Yahoo! Buzz">
<img name="rollimg15" onLoad="MM_preloadImages('images/o_on.gif')" width=115 height=26 alt="Add this website to Yahoo! Buzz" border=0 src="images/o_off.gif">
</a></div>
The code below saves the url from the existing window to the specific social web service:
javascript:location.href='http://buzz.yahoo.com/submit?submitUrl='+encodeURIComponent(document.location.href)+' '"