LZ 确定你的url 是对的嘛 能找到地址
还有你导入的js 路径对不对
你仔细看看
^_*

解决方案 »

  1.   

    url是对的啊,我还用过绝对路径试过,也是同样的效果,更甚至我不用js调用,直接把代码(当然不是这一段)往代码往那儿放,点击后在浏览器弹出的还是javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0) ,真的不知道为什么啊!
      

  2.   


    <script language="javascript">
    <!--
    document.write(" <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\',\'width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes\');void(0)\" title=\'收藏到QQ书签\'> <img src=\'\/t\/qq.gif\' border=\'0\'> <\/a> "); 
    document.write(" <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\"> <img title=\"收藏到百度收藏\" src=\"\/t\/baidu.gif\" border=\"0\"> <\/a> "); 
    document.write(" <a title=\'GOOGLe书签\' href=\"javascript:window.open(\'http:\/\/www.google.com\/books\/?op=add&bkmk=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title));void(0)\"> <img src=\'\/t\/google.gif\' title=\'收藏到Google书签\' border=\'0\'> <\/a> "); 
    document.write(" <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=455,left=80,top=80,status=yes,resizable=yes\');\"> <img src=\"\/t\/yahoo.gif\"  border=\"0\" title=\"收藏到雅虎中文书签\"> <\/a> "); 
    document.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=28&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=\'\/t\/vivi.gif\' title=\'收藏到新浪ViVi\' border=\'0\'> <\/a> "); 
    document.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:\/\/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=\"\/t\/hexun.gif\" title=\"收藏到和讯网摘\" border=\"0\"> <\/a> "); 
    document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(hot=window.open(\'http:\/\/hot.tianya.cn\/Add.aspx?title=\'+escape(d.title)+\'&url=\'+escape(d.location.href)+\'&desc=\'+escape(t),\'hot\',\'scrollbars=no,width=410,height=517,left=75,top=20,status=no,resizable=yes\'));hot.focus();\" title=\'收藏的网页将被永久地保存\'> <img src=\'\/t\/yeeyoo.gif\' title=\'收藏到天涯网藏\' border=\'0\'> <\/a> "); 
    document.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();\"> <img src=\'\/t\/yesky.gif\' title=\'收藏到天极网摘\' border=\'0\'> <\/a> ");
    //-->
    </script>
    IE6--OK
      

  3.   

    God! 原来是IE 不支持啊
    这是Js 的致命点
      

  4.   

    <SCRIPT language="javascript" src="cang.js"> </SCRIPT> 
    "cang.js"list(gb2312):
    document.write(" <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\',\'width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes\');void(0)\" title=\'收藏到QQ书签\'> <img src=\'\/t\/qq.gif\' border=\'0\'> <\/a> "); 
    document.write(" <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\"> <img title=\"收藏到百度收藏\" src=\"\/t\/baidu.gif\" border=\"0\"> <\/a> "); 
    document.write(" <a title=\'GOOGLe书签\' href=\"javascript:window.open(\'http:\/\/www.google.com\/books\/?op=add&bkmk=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title));void(0)\"> <img src=\'\/t\/google.gif\' title=\'收藏到Google书签\' border=\'0\'> <\/a> "); 
    document.write(" <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=455,left=80,top=80,status=yes,resizable=yes\');\"> <img src=\"\/t\/yahoo.gif\"  border=\"0\" title=\"收藏到雅虎中文书签\"> <\/a> "); 
    document.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=28&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=\'\/t\/vivi.gif\' title=\'收藏到新浪ViVi\' border=\'0\'> <\/a> "); 
    document.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:\/\/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=\"\/t\/hexun.gif\" title=\"收藏到和讯网摘\" border=\"0\"> <\/a> "); 
    document.write(" <a href=\"javascript:d=document;t=d.selection?(d.selection.type!=\'None\'?d.selection.createRange().text:\'\'):(d.getSelection?d.getSelection():\'\');void(hot=window.open(\'http:\/\/hot.tianya.cn\/Add.aspx?title=\'+escape(d.title)+\'&url=\'+escape(d.location.href)+\'&desc=\'+escape(t),\'hot\',\'scrollbars=no,width=410,height=517,left=75,top=20,status=no,resizable=yes\'));hot.focus();\" title=\'收藏的网页将被永久地保存\'> <img src=\'\/t\/yeeyoo.gif\' title=\'收藏到天涯网藏\' border=\'0\'> <\/a> "); 
    document.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();\"> <img src=\'\/t\/yesky.gif\' title=\'收藏到天极网摘\' border=\'0\'> <\/a> ");
    IE6--OK