下面的代码是正在投放的广告。由于广告位于页面的最顶部,因此我们希望确保在其服务器发生故障时它不会阻止网站加载。我们正在寻找 javascript 或 C# ASP.NET 解决方案。我们已经尝试重写它以在 DOM Ready 上工作,但它似乎不是那样工作的。
<!--LEADERBOARD AD-->
<center>
<div>
<script type='text/javascript'><!-- //<![CDATA[
var m3_u = (location.protocol == 'https:' ? 'https://www.oncampusweb.com/delivery/ajs.php' : 'http://www.oncampusweb.com/delivery/ajs.php');
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("?zoneid=341");
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='http://www.oncampusweb.com/delivery/ck.php?n=ae7029e9&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.oncampusweb.com/delivery/avw.php?zoneid=341&cb=INSERT_RANDOM_NUMBER_HERE&n=ae7029e9' border='0' alt='' /></a></noscript>
</div>
</center>
<!--LEADERBOARD AD-->