我有 GWT 项目,我需要向这个项目添加一些广告,所以我们决定使用 OpenX 作为管理员来创建添加到站点。所以经过调查,我们发现 OpenX 生成了添加的代码,如下例所示:
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'openXURL':'openXURL');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?what=SearchCriteria");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='openXURL?n=a98f1030&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='openXURL??what=SearchCriteria&cb=INSERT_RANDOM_NUMBER_HERE&n=a98f1030' border='0' alt='' /></a></noscript>
所以我要问的是如何在 GWT 中呈现这个 javascript 代码?