Mailcounter 让你仅需在网页或博客内加入一串代码,就能让访客读者亲送通过电子邮件转寄你文章,分享给网友,而且还会显示出文章被转寄的次数以供显摆所用,如同 TweetMeme 或 Facebook 的按钮。这个工具是 The Next Web 开发,如果你想知道你的文章被转寄的多不多,只要将代码加入网页即可。目前这项简单实用的博客工具不需要注册也不需要安装任何插件,代码既加既用。
Javascript
将以下面的代码复制到你的网站需要显示转寄按钮的位置,需要将 http://yoururlhere.com 和 title of your page here 变更为页面网址以及页面标题。
<iframe src=”http://getmailcounter.com/mailcounter/?url=http://yoururlhere.com&title=title of your page here” height=”64″ width=”50″ frameborder=”0″ scrolling=”no”></iframe>
WordPress
复制下面的代码,加入你到博客模版 single.php 和 index.php 等文件里。
<?php
echo ‘<iframe src=”http://getmailcounter.com/mailcounter/?url=’;
urlencode(the_permalink());
echo ‘&title=’;
urlencode(the_title());
echo ‘” height=”64″ width=”50″ frameborder=”0″ scrolling=”no” ></iframe>’;
?>



