转子重装 [英] adrotator reload

查看:73
本文介绍了转子重装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在在下面使用以下代码更改广告,但它会重新加载整个页面.我只想重新加载广告,而不是整个页面.

I now use this code below for changing the ads but it is reloading the entire page. I just want to reload the ads and not the entire page.

<meta http-equiv="refresh" content="3"/>



在没有完全刷新页面的情况下,有什么更好的方法?



What is a better way to do this without the page refreshing completely?

推荐答案

只需使用javascript计时器即可处理它,如下所示:
Simply use the javascript timer to handle it, like this:
function NewImage()
{
    document.images.clock.src = "clock.php";
    setTimeout('NewImage()',60000);
}
setTimeout('NewImage()',50);



上面的代码只是一分钟又一遍地加载相同的图像,因此您必须提供一些其他代码才能正确处理它.

一个javascript广告旋转子示例:
http://www.abiglime.com/webmaster/articles/jscript/021298.htm [ ^ ]

另一种方法是添加一个iframe,并使其像对整个页面一样进行刷新.您可以在Google上搜索一些示例.

祝您好运!



The above code simply loads the same image over and over every minute so you have to supply some additional code to handle it properly.

A javascript ad rotator example:
http://www.abiglime.com/webmaster/articles/jscript/021298.htm[^]

Another way would be to add an iframe and let it refresh as you did with the complete page. You can google it for some examples.

Good luck!


您好,请始终提及您在应用程序中使用的语言/技术/平台,以便快速获得正确的答案.我不知道你是什么?

我是.NET程序员,因此您可以在ASP.NET中使用Adrotator组件.其他人正在关注

ASP AdRotator组件 [ ASP.NET AdRotator控件 [ ^ ]

PHP广告旋转器 [ Java横幅广告旋转器小程序 [ ^ ]

JavaScript标语广告旋转器脚本 [ ^ ]
Hi, Please always mention which language/tech/platform you are using for your application, so that you can get the right answers quickly. I don''t know what''s yours?

I''m a .NET programmer, so you can use Adrotator component in ASP.NET. Others are following

ASP AdRotator Component[^]

ASP.NET AdRotator Control[^]

PHP Ad Rotator[^]

Java Banner Ad Rotator Applet[^]

JavaScript Banner Ad Rotator Script[^]


这篇关于转子重装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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