如何创建iframe刷新广告横幅代码NO PAGE REFRESH,而不是adsense
example =>
<div align="center">
<iframe src ="http://www.1pars.com/ads/2.html" id="I1"
name="I1" align="center" height="63" width="500" "border="0"
frameborder="0" scrolling="no" marginheight="1"
marginwidth="1"><p>Your browser does not support
iframes.</p>
答案 0 :(得分:1)
这很简单:
<iframe src="../../../index.htm">
<p>Your browser doesn't support frames. You can visit the site directly via
<a href="../../../index.htm">this link</a>.</p>
</iframe>
链接的index.html
需要在其标题中包含此内容:
<meta http-equiv="refresh" content="15; URL=index.html">
答案 1 :(得分:0)
这个问题相当普遍;但是,如果你想让iframe加载一个横幅图像,然后动态刷新横幅图像,那么对我来说最好的选择是向服务器请求获取下一个图像的ajax请求,然后插入新的将网址添加到页面上的图片代码中。
或者,您的iframe横幅页面上可能包含一些图像,还有一些javascript可在预定义图像之间旋转。
然而,在不知道更完整的问题的情况下,这是我能给出的最佳答案。