求高手帮我看看这个书签代码的JavaScript调用,先谢为敬! LZ 确定你的url 是对的嘛 能找到地址还有你导入的js 路径对不对你仔细看看^_* 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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) ,真的不知道为什么啊! <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&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 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 God! 原来是IE 不支持啊这是Js 的致命点 <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&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 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 JS设定DIV宽度和高度。 关于js中获取字符串转义的问题 js调用问题! 急!!!!!!!!使用frame时,如何实现按动键盘即可调用另一frame中函数 如何获得web控件的位置? 光标离开是触发那个事件啊,详细请见里面,谢谢! 对象内部事件的引用方法是什么 javascript原生脚本在原来的html前插入一段html代码,如何实现? 如何用框架传值? 详细见内 如何实现登录之前和登录之后显示不同的页面,即登录才可以看到登录页面,没有登录就显示一个您还没有登录请登录的页面! 关与js的对象问题 分拆一个比较复杂的正则,我眼都看花了
<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&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 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
这是Js 的致命点
"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&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 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