2007年8月17日 星期五

RSS與網路書籤

RSS(Really Simple Syndication)是一種用於共用新聞和其他Web內容的資料交換規範,起源於網景通訊公司的推"Push"技術,將訂戶訂閱的內容傳送給他們的通訊協同格式(Protocol)。http://www.feedburner.com/fb/a/home可使你的blog被訂閱、接著按照它步驟填入所需,至Feed Address可更改為自已的blog名。註冊完後選publicize-Chicklet Chooser選擇想要的訂閱按扭,底下會出現編碼。將它貼入網頁完成。
選publicize-FeedCount可獲得訂閱人數貼紙

網路書籤為只標記某篇文章。可至http://www.addthis.com/取得整合的網路書籤AddThis Social Bookmark Button
點選Get these Widget!選取格式再將出現的編碼貼入網頁即可。
其它熱門的像Google BookmarksYahoo! My WebPChomeMyShareBaiduUdnHemiDemi網路書籤語法如下,右鍵另存小圖後。修改語法src="http://yourdomain/google.jpg"為你的網頁空間即可。以免只剩下連結文字
其它的書籤就類推。

<!--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 alt='Google Bookmarks' border='0' src='http://nvoms123.googlepages.com/google.jpg' title='Google Bookmarks'/></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 alt='Yahoo! My Web' borderc='0' src='http://nvoms123.googlepages.com/yahoo.jpg' title='Yahoo! My Web'/></a>

<!--pchome-->
<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://search20.portal20.com.tw/x.jsp?t="+encodeURIComponent(document.title)+"&u="+encodeURIComponent(window.location.href)+"&n="+encodeURIComponent(desc)));'><img alt='PChome' border='0' src='http://nvoms123.googlepages.com/pchome.jpg' title='PChome'/></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 alt='MyShare' border='0' src='http://nvoms123.googlepages.com/myshare.jpg' title='MyShare'/></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 alt='Baidu' border='0' src='http://nvoms123.googlepages.com/baidu.jpg' title='Baidu'/></a>

<!--Udn-->
<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://bookmark.udn.com/add?f_TITLE="+encodeURIComponent(document.title)+"&f_URL="+encodeURIComponent(location.href)+"&f_DIGEST="+encodeURIComponent(desc)+"&via="+encodeURIComponent(via)));'><img alt='Udn' border='0' src='http://nvoms123.googlepages.com/udn.gif' title='Udn'/></a>

<!-- HemiDemi -->
<a href='http://www.hemidemi.com/?s=s' onclick='window.open(this.href);return false;'><img alt='HemiDemi' border='0' src='http://nvoms123.googlepages.com/hemidemi.gif' title='HemiDemi'/></a>



若要每篇都加入blogger的文章。進入Customize (自定) > Template(範本) > Edit(修改) HTML > 把 Expand Widget Template(展開小裝置範本) 打勾

找到下面這段代碼
<span class='post-labels'>
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'>
<data:label.name/>
</a><b:if cond='data:label.isLast != "true"'>,</b:if>
</b:loop>
</b:if>
<----以上代碼插入處
</span>
貯存後有錯誤的話,將以上語法所有&改成&amp;即可~

沒有留言: