看到现在很多的网站中都有收录到热门网摘,我也想把自己的BLOG中也增加热门网摘!经过一番研究之后,终于完成了为L-BLOG增加热门网摘的方法,现公布方法及步骤:
第一步:首先打开blogview.asp这个文件,然后找到


Response.Write("<div><img src=""images/icon_trackback.gif"" border=""0"" align=""absmiddle""><b><a href=""trackback.asp?logID="&logID&""">引用通告地址</a> ("&log_QuoteNums&"):</b><br /><img src=""images/utf8.gif"" border=""0"" align=""absmiddle"" style=""cursor:hand;"" alt=""复制引用地址"" onClick=""CopyText(document.all.tbUTFURL)""><span class=""smalltxt"" id=""tbUTFURL"">"&siteURL&"/trackback.asp?tbID="&logID&"</span><br /><img src=""images/gbk.gif"" border=""0"" align=""absmiddle"" style=""cursor:hand;"" alt=""复制引用地址"" onClick=""CopyText(document.all.tbGBKURL)""><span class=""smalltxt"" id=""tbGBKURL"">"&siteURL&"/trackback.asp?tbID="&logID&"&CP=GBK</span></div></div>")


第二步:在这一段的上面一行加入以下代码:


'网摘代码开始(MinTo'BLOG原创)
                Response.write "收藏此页到:  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');window.external.addFavorite(escape(d.location.href),'');"">IE收藏夹</a>  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"">POCO网摘</a>  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"" title=""功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐""><font color=DarkOrchid>[365K<font color=""#57c200"">e</font>y]</font></a>  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=itlearner.com&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"" title=""收藏的网页将被永久地保存到新浪ViVi收藏夹http://vivi.sina.com.cn""><font color=""#CC6600"">[ViVi]</font></a>  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(boit=window.open('http://blogmark.blogchina.com/jsp/key/quickaddkey.jsp?k='+encodeURI(d.title)+'&u='+encodeURI(d.location.href)+'&c='+encodeURI(t),'boit','scrollbars=no,width=500,height=430,status=no,resizable=yes'));boit.focus();"">博彩</a>  "
                Response.write "<a href=""javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"">和讯网摘</a>  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"" title=""天极网摘:文摘|图摘|闪摘|乐摘 http://hot.yesky.com"">天极网摘</a>  "
                Response.write "<a href=""javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://z.sohu.com/storeit.do?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();""><font color=DarkOrchid>狐摘</font></a>  "
               '网摘代码结束


到这里,就已经完成了热门网摘的加入调用方法!演示请看本站:http://www.youthfly.net/blog
其实这是很简单的一段代码,只不过是花了一点时间把它放到BLOG上面来![em03]

2005/10/13