本文引用自:C'est La Vie-畢其功於一役的書籤按鈕語法

前幾天介紹了『讓您的網誌更增人氣-加入網路書籤的便利方式』的方法之後,今天看到CGS大又在他的部落格公布了讓無名小站的使用者振奮的消息,那就是:我們再也不必一篇篇文章都要自行貼上這些語法了。

只要在您的『網誌敘述』或者『側欄』之中貼上下列的語法,您就可以和那段語法說byebye囉!以後您只要發表文章,就會在文章的後頭自動加上這些貼紙。

<div id="add2bookmark" style="display:none">
<br>
</a>將本文收入書籤:
<!-MyShare->
<a href="javascript:(function(){d=document;w=window;t='';if(d.selection){t=d.selection.createRange().text;}else{if(d.getSelection){t=d.getSelection();}else{if(w.getSelection){t=w.getSelection()}}}void(window.open('http://myshare.url.com.tw/index.php?func=newurl&url='+encodeURIComponent(location.href)+'&desc='+escape(document.title)+'&contents='+escape(t),'newwin'))})();"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/1.jpg" title="MyShare" alt="MyShare" class="bkimg"></a>
<!-HemiDemi->
<a href="javascript:desc='';via='';if(document.referrer)via=document.referrer;if(typeof(_ref)!='undefined')via=_ref;if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.hemidemi.com/user_bookmark/new?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via)));"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/2.jpg" title="HemiDemi" alt="HemiDemi" class="bkimg"></a>
<!-Fiigo->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.fiigo.com/bookmark/my.php?a=add_web&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&comment='+encodeURIComponent(desc)+'&ei=UTF-8',0));"><img src="http://www.fiigo.com/bookmark/pic/save_icon/icon-16x16-2.gif" title="Fiigo" alt="Fiigo" class="bkimg"></a>
<!-Baidu->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://cang.baidu.com/do/add?iu='+encodeURIComponent(location.href)+'&it='+encodeURIComponent(document.title)+'&dc='+encodeURIComponent(desc)));"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/3.jpg" title="Baidu" alt="Baidu" class="bkimg"></a>
<!-Google Bookmarks->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&annotation='+encodeURIComponent(desc)));"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/4.jpg" title="Google Bookmarks" alt="Google Bookmarks" class="bkimg"></a>
<!-Yahoo! My Web->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(window.location.href)+'&d='+encodeURIComponent(desc)+'&ei=UTF-8'));"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/5.jpg" title="Yahoo! My Web" alt="Yahoo! My Web" class="bkimg"></a>
<!-Del.icio.us->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://del.icio.us/post?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&notes='+encodeURIComponent(desc)));"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/6.jpg" title="Del.icio.us" alt="Del.icio.us" class="bkimg"></a>
<!-Digg->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&bodytext='+encodeURIComponent(desc)));"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/7.jpg" title="Digg" alt="Digg" class="bkimg"></a>
<!-Technorati->
<a href="javascript:void window.open('http://technorati.com/faves?add='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/8.jpg" title="technorati" alt="technorati" class="bkimg"></a>
<!-Furl->
<a href="javascript:(function(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');var%20furlit=window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent(d.title)+'&u='+escape(d.location.href)+'&r='+escape(d.referrer)+'&c='+encodeURIComponent(t)+'&p=1');})();"><img src="http://web.caidiy.com/plate/files/myblog/person/make_template/cgs0102/1037//images/9.jpg" title="furl" alt="furl" class="bkimg"></a>
<!-AddThis->
<a href="javascript:void window.open('http://www.addthis.com/bookmark.php?pub=addthis&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title));"><img src="http://s3.addthis.com/button1-bm.gif" title="其他更多書籤" alt="其他更多書籤" class="bkimg"></a>
</div>
<!-JavaScript->
<script type="text/javascript" src="http://jquery.com/src/jquery-latest.pack.js"></script>
<script type="text/javascript">$(document).ready(function() {var divTrk=$(".total-comments-div");if(divTrk.length>0) {var divCat=$("div.extended");var brk=$("#add2bookmark");brk.find(".bkimg").attr({border:"0", align:"absbottom"});brk.appendTo(divCat);brk.css("display","inline");}});</script>



如果您不想把這些貼紙放在文章末尾,想放在前面,可以參考Ressol大的網站,使用Ressol大的語法即可。

同CGS大文章中引述迴紋針老師的說法:『大家都掛了書籤貼紙,等了別人來自己家摘文章,可是有多少人因為喜歡別人的好文,而主動去摘它呢?……如果大家都只是裝了這個工具,孤芳自賞地希望別人來摘,自己卻吝於給別人掌聲與鼓勵,我想這也就沒什麼意義了。』這句話說的實在是好!希望各位讀者們在看到辛苦的部落客們所寫出的文章之時,也能不吝給予一些讚美和掌聲囉!這樣才是大部分部落客們繼續寫出好文章的動力來源呢!

 2007.04.11更新:如果各位是將這段語法放在側欄的位置,則需要在開頭的地方將入(紅色字體標明處),否則『將本文收入書籤』這幾個字會變成超連結,如果放在『網誌敘述』裡便不用了。另外,先前分享的語法有個地方忘記了,就是沒有加上(同樣是紅色字體標明處),這樣可能會造成錯亂,請各位更正!以上資訊感謝CGS大指正。
創作者介紹

以管窺天-GeorgeC的網路日誌

georgec 發表在 痞客邦 PIXNET 留言(2) 人氣()


留言列表 (2)

發表留言
  • CGS
  • 之前分享的語法,不小心漏了一個很重要的</div>,導致部分使用者的版型錯亂,現在已經修正完成,麻煩大家更新一下...^^
  • georgec
  • 多謝CGS大的指正