如何使该广告服务器片段符合 W3C 标准?
我与广告服务器签订了一份合同,在我的网站上投放广告,但他们给我的 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>
它不能仅通过将 &
更改为 &
来验证。
I have a made a contract with an adserver to serve ads on my website and the html snippet they give me does not validate, I am having a hard way trying to make it validate.
My header is transitional.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The html code I was given is the following.
<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>
It does not validate just by changing the &
to &s;
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将
&
符号更改为...然后发布您收到的任何其他错误。编辑:
我将您的所有代码验证为接下来...
You have to change the
&
symbols into...Then post whatever other errors you get.EDIT:
I validated all of your code as follows...