首页 | 站长免费中心 | 新手上路 | 网站运营 | 网页制作 | 图片设计 | 动画设计 | 网页编程 | 网页特效 | 本站专题 | 虚拟主机 | 域名注册 | 网站建设 | 程序下载
       免费空间资源 | 新闻咨询 | 免费域名 | 免费网盘 | 网站推广 | 网站策划 | 建站经验 | 网站优化 | 网页代码 | 源码下载 | 音乐小偷 | 网络赚钱 | 论坛交流
网站建设
网站建设
虚拟主机
虚拟主机
域名注册
域名注册
711网络首页
站长工具
站长工具
网站源码
网站源码
站长论坛
站长论坛

 711网络 网页编程ASP代码

各种网摘代码

来源: 互联网    日期:2008-5-3
 
现在网站站长常用的一种手段是采用网摘。下面的代码就是用来实现这个功能的,帮助访问者快速添加网摘。 [来源:飞腾设计网www.feitec.com内容,转载请注明出处]

    1、将以下代码保存为feitec_wz.js: 

    document.write(" <br/><strong>收藏到:</strong><a target=\"_self\" 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=xuxule.net&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();\"><img src='http://www.51xkx.com/zai/vivi.gif' alt='新浪ViVi' border='0'></a> "); 

    document.write(" <a target=\"_self\" 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();\"><img src='http://www.51xkx.com/zai/365key.gif' alt='365Key网摘' border='0'></a> ");
    document.write(" <a target=\"_self\" 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();\"><img src='http://www.51xkx.com/zai/yesky.gif' alt='天极网摘' border='0'></a> ");
    document.write(" <a target=\"_self\" href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(wozhai=window.open('http://www.wozhai.com/wozhai/Cento.asp#t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'wozhai','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));wozhai.focus();\"><img src='http://www.51xkx.com/zai/wozhai.gif' alt='我摘' border='0'></a> ");
    document.write(" <a target=\"_self\" 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)+'&img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();\"><img src='http://www.51xkx.com/zai/poco.gif' alt='POCO网摘' border='0'></a> ");

    document.write(" <a target=\"_self\" 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'));\"><img src='http://www.51xkx.com/zai/hexun.gif' alt='和讯网摘' border='0'></a> ");

    document.write(" <a target=\"_self\" href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&newspath='+escape(d.location.href)+'&subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();\"><img src='http://www.51xkx.com/zai/bolaa.gif' alt='博拉网' border='0'></a> ");

    document.writeln("<A href=\"javascript:location.href=\'http:\/\/myweb.cn.yahoo.com\/popadd.html?url=\'+encodeURIComponent(location.href)+\'&amp;title=\'+encodeURIComponent(document.title)\"><IMG alt=雅虎收藏夹 src=\"http:\/\/www.51xkx.com\/zai\/yahoomyweb-cn.png\" border=0><\/A>");

    document.writeln("<A title=百度收藏 href=\"javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http:\/\/cang.baidu.com\/do\/add?it=%22+encodeURIComponent(t)+%22&amp;iu=%22+encodeURIComponent(u)+%22&amp;dc=%22+encodeURIComponent(c)+%22&amp;fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0\"><IMG alt=百度收藏 src=\"http:\/\/www.51xkx.com\/zai\/baidu.gif\" border=0><\/A>");

    document.writeln("<a href=\"http:\/\/www.shouker.com\/\" onClick=\"javascript:var js=document.createElement(\'script\');if(typeof(js)!=\'object\')js=document.standardCreateElement(\'script\');js.type=\'text\/javascript\';js.src=\'http:\/\/www.shouker.com\/js\/capageb.js\';document.getElementsByTagName(\'html\')[0].appendChild(js);return false;\"><img src=\"http:\/\/www.shouker.com\/about\/rss\/sk-cl5.gif\" border=\"0\"><\/a>")

    document.writeln("<a href=\"javascript:q=(document.location.href);void(open(\'http:\/\/www.digbuzz.com\/submit.php?url=\'+escape(q),\'\',\'resizable,location,menubar,toolbar,scrollbars,status\'));\"><img src=\"http:\/\/www.my7475.com\/wp-content\/plugins\/wp_addbookmarks\/images\/digbuzz.gif\" border=\"0\" alt=\"Digbuzz我挖网\" title=\"添加到Digbuzz我挖网\" \/><\/a> ")

    document.writeln("<a href=\"javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(zhai=window.open(\'http:\/\/shuqian.qq.com\/post?from=3&amp;title=\'+encodeURIComponent(document.title)+\'&amp;u=\'+escape(d.location.href)+\'&amp;c=\'+escape(t),\'zhai\',\'scrollbars=no,width=480,height=420,left=75,top=50,status=no,resizable=yes\'));zhai.focus();\"><img src=\"http:\/\/www.my7475.com\/wp-content\/plugins\/wp_addbookmarks\/images\/qq.gif\" alt=\"QQ书签\" title=\"添加到QQ书签\" border=\"0\"\/><\/a>")

    document.writeln("<a href=\"javascript:var d=document,w=window,f=\'http:\/\/fanfou.com\/share\',l=d.location,e=encodeURIComponent,p=\'?u=\'+e(l.href)+\'&amp;t=\'+e(d.title)+\'&amp;d=\'+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+\'&amp;s=bm\';a=function(){if(!w.open(f+\'r\'+p,\'sharer\',\'toolbar=0,status=0,resizable=0,width=600,height=400\'))l.href=f+\'.new\'+p};if(\/Firefox\/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0)\"><img src=\"http:\/\/www.my7475.com\/wp-content\/plugins\/wp_addbookmarks\/images\/fanfou.gif\" alt=\"添加到饭否\"  title=\"添加到饭否\" border=\"0\"\/><\/a> ")

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/www.google.com\/bookmarks\/mark?op=add&amp;bkmk=\'+encodeURIComponent(location.href)+\'&amp;title=\'+encodeURIComponent(document.title)\"><img src=\"http:\/\/www.my7475.com\/wp-content\/plugins\/wp_addbookmarks\/images\/\/google.png\" alt=\"Google书签\" title=\"添加到Google书签\" border=\"0\" \/><\/a>")
    document.writeln("<br>");

    2、在内容页面插入以下代码供调用:

    <script type="text/javascript" language="javaScript" src="feitec_WZ.js"></script>



更多的各种网摘代码请到论坛查看: http://BBS.TC711.COM



【 双击滚屏 】 【 评论 】 【 收藏 】 【 打印 】 【 关闭 】 来源: 互联网    日期:2008-5-3   

发 表 评 论
查看评论

  您的大名:
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
认证编码: 刷新验证码
点评内容: 字数0
  精品推荐  
  本月推荐  
  友情赞助  

关于我们 | 联系我们 | 广告投放 | 留言反馈 | 免费程序 | 虚拟主机 | 网站建设 |  网站推广 |  google_sitemap baidu_sitemap RSS订阅
本站所有资源均来自互联网,如有侵犯您的版权或其他问题,请通知管理员,我们会在最短的时间回复您
Copyright © 2005-2015 Tc711.Com All Rights Reserved 版权所有·711网络   蜀ICP备05021915号
110网监备案 信息产业备案 不良信息举报