本帖最后由 cde32 于 2012-10-21 02:12:26 编辑

解决方案 »

  1.   

    因为百度分享只能用一次,再次编辑内容后,提交分享的还是第一次的内容,无法“刷新”。前天给你QQ留言一直没回音,自己弄也没找到办法,就想用整体替换的方法试试。现在虽然可以整体替换js内容了,却无法加载。
      

  2.   

    window.onload=function(){
    document.getElementById("L2").innerHTML='<sc'+'ript type="text/javascript"charset="utf-8">(function(){var _w=106,_h=24;var param={url:location.href,type:\'5\',count:\'\',appkey:\'\',title:_ga2+\'…\',pic:\'http://csdnimg.cn/www/images/csdnindex_\'+sj+\'.gif\',ralateUid:\'\',language:\'zh_cn\',rnd:new Date().valueOf()};var temp=[];for(var p in param){temp.push(p+\'=\'+encodeURIComponent(param[p]||\'\'))};document.write(\'<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?\'+temp.join(\'&\')+\'" width="\'+_w+\'" height="\'+_h+\'"></iframe>\')})()</'+'script>';
    }
    还有你的是直接赋值给了控件,这个会执行吗?