繼上次無名內文置放 Adsense 與加入書籤按鈕再進化之後
再次更新他的版面與語法 有圖有真相

除了原本在內文下方的Adsense外 另外加入附著在引用網址內部的Adsense
書籤亦增加了udn書籤funp書籤twitthis書籤
(udn書籤以及funp書籤感謝BillyPan大的教學)
以下就是懶人包 請自取



<!-- Copyleft Ressol (http://blog.yam.com/ressol), CGS (http://www.wretch.cc/blog/CGS) -->

<div id="adsense2" style="display:none">
<br><center>
插入Google Adsense語法
</center></div>

<div id="bookmark" style="display:none">
將本文收入書籤 / Add to bookmark:
<a href="javascript:addBookmark('myshare');"><img _fcksavedurl=""javascript:addBookmark('myshare');"><img" src="http://myshare.url.com.tw/images/myshare.ico" _fcksavedurl=""http://myshare.url.com.tw/images/myshare.ico"" title="MyShare" alt="MyShare" class="bkimg"></a>
<a href="javascript:addBookmark('hemidemi');"><img src="http://www.hemidemi.com/images/HD.gif" title="HemiDemi" alt="HemiDemi" class="bkimg"></a>
<a href="javascript:addBookmark('google');"><img src="http://www.google.com/favicon.ico" title="Google Bookmarks" alt="Google Bookmarks" class="bkimg"></a>
<a href="javascript:addBookmark('yahoo');"><img src="http://tw.yahoo.com/favicon.ico" title="Yahoo! My Web" alt="Yahoo! My Web" class="bkimg"></a>
<a href="javascript:addBookmark('pchome');"><img src="http://w6.pchome.com.tw/template/icon/favicon.ico" title="PC Home Search 2.0" alt="PC Home Search 2.0" class="bkimg"></a>
<a href="javascript:addBookmark('fiigo');"><img src="http://www.fiigo.com/bookmark/pic/save_icon/icon-16x16-2.gif" title="Fiigo" alt="Fiigo" class="bkimg"></a>
<a href="javascript:addBookmark('youpush');"><img src="http://www.youpush.net/images/yp.gif" title="You Push" alt="You Push" class="bkimg"></a>
<a href="javascript:addBookmark('technorati');"><img src="http://technorati.com/favicon.ico" title="Technorati" alt="Technorati" class="bkimg"></a>
<a href="javascript:addBookmark('baidu');"><img src="http://cang.baidu.com/favicon.ico" title="baidu" alt="baidu" class="bkimg"></a>
<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit'));keyit.focus();"><img src="http://www.365key.com/favicon.ico" width="16px" title="365key" alt="365key" class="bkimg"></a>
<a href="javascript:addBookmark('delicious');"><img src="http://del.icio.us/favicon.ico" title="Del.icio.us" alt="Del.icio.us" class="bkimg"></a>
<a href="javascript:addBookmark('digg');"><img src="http://digg.com/favicon.ico" title="Digg" alt="Digg" class="bkimg"></a>
<a href="javascript:addBookmark('furl');"><img src="http://www.furl.net/i/favicon.ico" title="Furl" alt="Furl" class="bkimg"></a>
<a href="javascript:addBookmark('udn');"><img src="http://bookmark.udn.com/html/help/udn.gif" title="udn" alt="udn" class="bkimg"></a>
<a href="javascript:addBookmark('funp');"><img src="http://funp.com/images/tools/post_05.gif" title="funp" alt="funp" class="bkimg"></a>
<a href="javascript:addBookmark('addthis');"><img src="http://www.addthis.com/favicon.ico" title="其他更多書籤" alt="其他更多書籤" class="bkimg"></a>
<!-- Begin TwitThis (http://twitthis.com/) -->
<script type="text/javascript" src="http://s3.chuug.com/chuug.twitthis.scripts/twitthis.js"></script>
<script type="text/javascript">
<!--
document.write('<a href="javascript:;" onclick="TwitThis.pop();"><img src="http://s3.chuug.com/chuug.twitthis.resources/twitthis_grey_72x22.gif" height="16px" class="bkimg" title="TwitThis" alt="TwitThis" style="border:none;" /></a>');
//-->
</script>
<!-- /End -->
</div>

<div id="prompt" style="display:none">
<FONT COLOR="yellow">【留言小提醒】<br> 請避免使用非必要之注音文、火星文。<br> 廣告、文不對題,無理、無禮,匿名、假名,無郵件、網址之不理性留言,刪除時恕不另行通知。</FONT><br><br>
</div>

<div id="adlink" style="display:none"><center>
插入Google Adsense語法
</center></div>

<script type="text/javascript">
function getSelectText() {var d = document;var desc = '';if(window.getSelection)desc=window.getSelection();else if(document.getSelection)desc=document.getSelection();else if(document.selection)desc=document.selection.createRange().text;else desc = '';return desc;}
function addBookmark(sType) {var via ='';var result = '';var sTitle = encodeURIComponent(document.title);var sURL = encodeURIComponent(location.href);sDesc = encodeURIComponent( getSelectText());
if( sType==("myshare")) {result = 'http://myshare.url.com.tw/index.php?func=newurl&url='+sURL+'&desc='+sTitle+'&contents='+sDesc;}
else if( sType==("hemidemi")) {result = 'http://www.hemidemi.com/user_bookmark/new?title='+sTitle+'&url='+sURL+'&description='+sDesc+'&via='+via;}
else if( sType==("google")) {result = 'http://www.google.com/bookmarks/mark?op=add&bkmk='+sURL+'&title='+sTitle+'&annotation='+sDesc;}
else if( sType==("yahoo")) {result = 'http://tw.myweb2.search.yahoo.com/myresults/bookmarklet?t='+sTitle+'&u='+sURL+'&d='+sDesc+'&ei=UTF-8';}
else if( sType==("pchome")) {result = 'http://search20.portal20.com.tw/x.jsp?t='+sTitle+'&u='+sURL+'&n='+sDesc;}
else if( sType==("fiigo")) {result = 'http://www.fiigo.com/bookmark/my.php?a=add_web&title='+sTitle+'&url='+sURL+'&comment='+sDesc;}
else if( sType==("youpush")) {result = 'http://www.youpush.net/submit.php?url='+sURL;}
else if( sType==("technorati")) {result = 'http://technorati.com/faves?add='+sURL+'&title='+sTitle;}
else if( sType==("baidu")) {result = 'http://cang.baidu.com/do/add?iu='+sURL+'&it='+sTitle+'&dc='+sDesc;}
else if( sType==("delicious")) {result = 'http://del.icio.us/post?title='+sTitle+'&url='+sURL+'¬es='+sDesc;}
else if( sType==("digg")) {result = 'http://digg.com/submit?phase=2&url='+sURL+'&title='+sTitle+'&bodytext='+sDesc;}
else if( sType==("furl")) {result = 'http://www.furl.net/storeIt.jsp?t='+sTitle+'&u='+sURL+'&r='+escape(via)+'&c='+encodeURI(sDesc)+'&p=1';}
else if( sType==("udn")) {result = 'http://bookmark.udn.com/add?f_TITLE='+sTitle+'&f_URL='+sURL+'&f_DIGEST='+sDesc+'&via='+via;}
else if( sType==("funp")) {result = 'http://funp.com/pages/submit/add.php?&via=tools&tools='+sURL;}
else if( sType==("addthis")) {result = 'http://www.addthis.com/bookmark.php?pub=addthis&url='+sURL+'&title='+sTitle;}
if(result!='') {window.open( result, 'addbookmak');}}</script>

<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 divAd2=$("div.trackback-url");
var ad2=$("#adsense2");
ad2.appendTo(divAd2);
ad2.css("display","inline");
var divPmt=$("div.comments-bottom")
var pmt=$("#prompt");
pmt.appendTo(divPmt);
pmt.css("display","inline");
var divBrk=$("div.articletext")
var brk=$("#bookmark");
brk.appendTo(divBrk);
brk.css("display","inline");
brk.find(".bkimg").attr({border:"0", align:"absbottom"});
var divLnk=$("div.trackback-url")
var lnk=$("#adlink");
lnk.appendTo(divLnk);
lnk.css("display","inline");
}
}
);
</script>


如果只想放置書籤跟留言提醒的
只要把
<div id="adsense2" style="display:none">
<br><center>
插入Google Adsense語法
</center></div>

<div id="adlink" style="display:none"><center>
插入Google Adsense語法
</center></div>

改成

<!--div id="adsense2" style="display:none"-->
<!--br--><!--center-->

<!--/center--><!--/div-->

<!--div id="adlink" style="display:none"--><!--center-->

<!--/center><!--/div-->


就可以嚕

    全站熱搜

    我的賴xfish 發表在 痞客邦 留言(0) 人氣()