开发者

javascript, html document.write

I'm trying to write a javascript using document.write but for some reasons it doesn't work . I also need to make a kind of trick to 'obfus开发者_如何学Ccate' the url and "src" attribute by automated bots .Any idea why ?

<script type="text/javascript">
document.write("<scr\" + \"ipt type=\"text\/jav\" + \"ascript\"  s\" + \"rc=\"http:\/\/www.a\" + \"utotraderuae.net\/mem\" + \"bers.j\" + \"s\"><\/sc\" + \"ript>");

thanks in advance for any response.


It works fine with me, I just added the closing script tag at the end.

<script type="text/javascript">
document.write("<script type=\"text\/javascript\" src=\"http:\/\/www.autotraderuae.net\/members.js\"><\/script>");
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜