页面后如何加载广告(lakequincy) [英] How to load Ad (lakequincy) after the page

查看:92
本文介绍了页面后如何加载广告(lakequincy)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨CP,

我在我的网站( http://www.windowsvalley.com )上使用Lakequincy Ads,但是当页面呈现时,页面卡住了广告.我读过有关在网页上加载广告的信息,但没有成功.

我检查了codeproject.com,并使用了相同的lakequincy广告,但它们的加载情况无可挑剔.

整个页面初始化后如何加载广告?

-Ramesh

Hi CP,

I''m using Lakequincy Ads on my website (http://www.windowsvalley.com) but when pages render, pages get stuck due to ads. I read about loading ads after page on web but wasn''t successfull.

I checked codeproject.com, using the same lakequincy ads but they''re loading flawlessly.

How can I load ads after whole page is initialized?

- Ramesh

推荐答案

Ramesh,

我将答案修改为在加载主体事件之后等待两秒钟,然后触发广告加载内容:

Hi Ramesh,

I''ve modified my answer to wait two seconds after the body on load event before triggering the ad loading stuff:

<body onload="doStartTimer();">
<!-- Rest of page here -->
<script type="text/javascript">
    function doLoadAdStuff()
    {
        //do ad loading stuff here
    }
   
   var myTimer;
   function myTimerEvent()
   {
      doLoadAdStuff();
   }

   // Lets do the ad loading stuff after 2 seconds == 2000 ms after the body load event
   function doStartTimer()
   {
       myTimer = window.setTimeout("Every100();", 2000);
   }

   window.onunload = new Function("clearTimeout(myTimer);");
</script>
</body>



干杯

Manfred



Cheers

Manfred


尝试过,但是没有用.就像我说的那样,codeproject.com已经使用一些
Tried but didn''t work. As I said codeproject.com already implemented it using some
s实现了它.


这篇关于页面后如何加载广告(lakequincy)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆