<script>document.write("<script type="text/javascript">内容</script>")</script>记住将 " 改成 ' ,如果必须使用 " 可以使用 \" 转义

解决方案 »

  1.   

    function showcontent()
    {
    document.write("<");
    document.write("script type=\"text/javascript\">");
    document.write("google_ad_client = \"pub-1120135979668121\";");
    document.write("google_ad_width = 160;");
    document.write("google_ad_height = 600;");
    document.write("google_ad_format = \"160x600_as\";");
    document.write("google_ad_channel =\"\";");
    document.write("google_ad_type = \"text_image\";");
    document.write("google_color_border = \"336699\";");
    document.write("google_color_bg = \"FFFFFF\";");
    document.write("google_color_link = \"0000FF\";");
    document.write("google_ad_client = \"pub-1120135979668121\";");
    document.write("google_color_text = \"000000\";");
    document.write("<");
    document.write("/script>");
    document.write("<");
    document.write("script type=\"text/javascript\" ");
    document.write("src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">");
    document.write("<");
    document.write("/script>");
    }
    </script>
    我已经测试过了,是google的广告