0

我与广告服务器签订了在我的网站上投放广告的合同,而他们给我的 html 片段没有验证,我很难让它验证。

我的标题是过渡性的。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

我得到的html代码如下。

<script  language="javascript"  type="text/javascript">iwsrcplus="http://codenew.impresionesweb.com/r/banner_iw.php?idrotador=82140&tamano=160x600&lgid="+((new Date()).getTime() % 2147483648) + Math.random(); document.write("<scr"+"ipt language=javascript  type=text/javascript src="+iwsrcplus+"></scr"+"ipt>");</script><noscript><iframe src="http://alt.impresionesweb.com/noscript.php?tam=160x600&idp=82140&ref=82140&cod=160915" width="160" height="600" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe></noscript>

它不仅仅通过更改&to 来验证&amps;

4

1 回答 1

0

您必须将&符号更改为...

&amp;

然后发布您遇到的任何其他错误。

编辑:

我验证了您的所有代码如下...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
       <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
       <title></title>
    </head>

    <body>

    <script  language="javascript"  type="text/javascript">
    //<![CDATA[
        iwsrcplus="http://codenew.impresionesweb.com/r/banner_iw.php?idrotador=82140&amp;tamano=160x600&amp;lgid="+((new Date()).getTime() % 2147483648) + Math.random(); document.write("<scr"+"ipt language=javascript  type=text/javascript src="+iwsrcplus+"></scr"+"ipt>");
    //]]>
    </script>
    <noscript><iframe src="http://alt.impresionesweb.com/noscript.php?tam=160x600&amp;idp=82140&amp;ref=82140&amp;cod=160915" width="160" height="600" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"></iframe></noscript>

    </body>

</html>
于 2011-06-21T13:53:25.977 回答