像 http://www.chinaz.com/Webmaster/report/11164515H008.html 文章上面的,收藏到。代码!!!!!              

解决方案 »

  1.   


    <div class="shoucang"><a name="shoucang"><font color="#000000" style="font-size: 12px;">收藏到:</font></a> <a href="javascript:window.open('http://shuqian.qq.com/post?from=3&amp;title='+encodeURIComponent(document.title)+'&amp;uri='+encodeURIComponent(document.location.href)+'&amp;jumpback=2&amp;noui=1','favit','');void(0)"><img border="0" align="absmiddle" src="/images/sc/qq.gif" alt="添加到QQ书签"/></a> <a 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" title="百度收藏"><img border="0" src="/images/sc/baidu.gif" alt="百度收藏"/></a> <a target="_blank" href="http://www.zhuaxia.com/add_channel.php?sourceid=102&amp;url=http%3A%2F%2Fwww.chinaz.com"><img border="0" alt="订阅到抓虾" src="/images/sc/zhuaxia.gif"/></a> <a href="javascript:location.href='http://www.xianguo.com/service/submitfav/?link='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)"><img border="0" alt="添加到鲜果" src="/images/sc/xianguo.gif"/></a> <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&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"><img border="0" alt="新浪ViVi" src="/images/sc/vivi.gif"/></a> <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)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img border="0" alt="365Key网摘" src="/images/sc/365key.gif"/></a> <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)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img border="0" alt="天极网摘" src="/images/sc/yesky.gif"/></a> <a 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)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'wozhai','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));wozhai.focus();"><img border="0" alt="我摘" src="/images/sc/wozhai.gif"/></a> <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://book.hexun.com/post.aspx?title='+escape(t)+'&amp;url='+escape(u)+'&amp;excerpt='+escape(e),'HexunBook','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><img border="0" alt="和讯网摘" src="/images/sc/hexun.gif"/></a> <a onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&amp;title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');" href="#"><img border="0" alt="yahoo" src="/images/sc/yahoo.gif"/></a> <a 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;" href="http://www.shouker.com/" target="_blank"><img border="0" src="/images/sc/sk-cl5.gif" alt="收藏到收客网"/></a> <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 border="0" title="添加到Digbuzz我挖网" alt="Digbuzz我挖网" src="/images/sc/digbuzz.gif"/></a> <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 border="0" title="添加到饭否" alt="添加到饭否" src="/images/sc/fanfou.gif"/></a> <a href="javascript:q=(document.location.href);void(open('http://www.waakee.com/submit.php?url='+encodeURIComponent(q),'',''));"><img width="18" border="0" alt="挖客" src="/images/sc/waakee18.gif"/></a> <a href="javascript:location.href='http://www.google.com/books/?op=add&amp;bkmk='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)"><img border="0" alt="添加到google" src="/images/sc/google.gif"/></a> <a href="javascript:window.external.AddFavorite(location.href+'#sc','★'+document.title)"><img border="0" align="absmiddle" src="/images/sc/ie.gif"/></a><br/>
      

  2.   

    装个firefox,添加firebug插件,
    在firefox里打开网页,就可以看到页面所有的东西了。
    包括js动态生成出来的,ajax的,客户端和服务器端交互的等等。
      

  3.   

    另一个方法:
    <script>document.writeln("<a name=\"shoucang\"><font style=\"font-size:12px\" color=\"#000\">收藏到:<\/font><\/a> <a href=javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><IMG alt=添加到QQ书签 src=/images/sc/qq.gif align=absMiddle border=0></a> <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&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&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=/images/sc/baidu.gif border=0><\/A> <a target=_blank href=\"http:\/\/www.zhuaxia.com\/add_channel.php?sourceid=102&url=http%3A%2F%2Fwww.chinaz.com\" target=\"_blank\"><img src=\"\/images\/sc\/zhuaxia.gif\" border=\"0\" alt=\"订阅到抓虾\" \/><\/a> <a href=\"javascript:location.href=\'http:\/\/www.xianguo.com\/service\/submitfav\/?link=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)\"><img src=\/images\/sc\/xianguo.gif alt=\"添加到鲜果\" border=0 \/><\/a> <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();\" target=\"_blank\"><img src='/images/sc/vivi.gif' alt='新浪ViVi' border='0'></a> <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();\"><img src='/images/sc/365key.gif' alt='365Key网摘' border='0'></a> <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();\" target=\"_blank\"><img src='/images/sc/yesky.gif' alt='天极网摘' border='0'></a> <a 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='/images/sc/wozhai.gif' alt='我摘' border='0'></a> <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://book.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBook','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));\"><img src='/images/sc/hexun.gif' alt='和讯网摘' border='0'></a> <a href=\"#\" onclick=\"window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes');\"><IMG alt=yahoo src=/images/sc/yahoo.gif alt=\"雅虎收藏\" border=0><\/A> <a target=\"_blank\" 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 alt=\"收藏到收客网\" src=/images/sc/sk-cl5.gif border=0><\/a> <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=/images/sc/digbuzz.gif border=0 alt=\"Digbuzz我挖网\" title=\"添加到Digbuzz我挖网\" \/><\/a> <a href=\"javascript:var d=document,w=window,f=\'http:\/\/fanfou.com\/share\',l=d.location,e=encodeURIComponent,p=\'?u=\'+e(l.href)+\'&t=\'+e(d.title)+\'&d=\'+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+\'&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=/images/sc/fanfou.gif alt=\"添加到饭否\" title=\"添加到饭否\" border=0\/><\/a> <a href=\"javascript:q=(document.location.href);void(open(\'http:\/\/www.waakee.com\/submit.php?url=\'+encodeURIComponent(q),\'\',\'\'));\"><img alt=\"挖客\" src=\"\/images\/sc\/waakee18.gif\" width=\"18\" alt=\"收藏到挖客\" border=\"0\"><\/a> <a href=\"javascript:location.href='http://www.google.com/books/?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\"><img src=/images/sc/google.gif alt=\"添加到google\" border=0\/></a> <a href=javascript:window.external.AddFavorite(location.href+'#sc','★'+document.title)><IMG  src=/images/sc/ie.gif align=absMiddle border=0></a><br>");</script>
      

  4.   


    <script language=javascript> 
    <!-- 
    function Addme(){ 
    url = "http://www.this.net";你自己的主页地址 
    title = "Your Site Name"; //你自己的主页名称 
    window.external.AddFavorite(url,title); 
    --> 
    </script> 
    <a href="javascript:Addme()">将本站添入收藏夹</a>