找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 11089|回复: 11

[其它] 弹出广告

  [复制链接]
发表于 2013-3-1 14:17:40 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="zh">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title></title>
<script src="/as/s/portal/?js=1"></script>
<script>
/* 获取URL参数 */
function getQueryParameter(name) {
   var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
   var r = window.location.search.substr(1).match(reg);
   if (r!=null) return unescape(r[2]); return null;
}

/* 取得认证前访问的页面地址 */
var url = getQueryParameter("url");
</script>
</head>
<body topmargin="0" rightmargin="0" leftmargin="0" style="overflow-y:hidden">

<iframe id="frm1" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="auto" width="100%" height="100%"></iframe>

<script>
/* 显示认证前访问的页面地址 */
document.getElementById("frm1").src = url;
</script>

<!-- 网页弹出广告开始 -->
<div id="myADBar" style="display:normal; bottom:0px; position:absolute; buttom:0px; right:16px; font-size:12px; width:250px; height:250px; border-style:solid; border-width:1px; background-color:#fff" align="right">

<a href="#" onclick="document.getElementById('myADBar').style.display='none'; return false;" style="color:#777777;text-decoration:none">[X]</a><br>

<table style="width:100%; height:239px">
<tr><td valign="middle" align="center">
<strong>广告内容</strong>
<br><br>
</td></tr>
<table>

</div>
<!-- 网页弹出广告结束 -->

</body>
</html>
routeros
发表于 2013-3-1 15:55:49 | 显示全部楼层
你太好了。我去测试下。
routeros
回复

使用道具 举报

发表于 2013-3-4 02:48:21 | 显示全部楼层
怎么在广告内容里面显示不出中外的
routeros
回复

使用道具 举报

发表于 2013-3-4 10:27:01 | 显示全部楼层
原始页面不显示啊大哥。。。。 空白
routeros
回复

使用道具 举报

发表于 2013-3-4 11:47:01 | 显示全部楼层
是用Web Proxy做?还是替换ROS本来的网页文件做啊?
我替换掉index2.html是成功了,但是框架缩到左上角去了,做不到100%.而且不是所有网页都能成功,会显示错误页面
用web proxy却得不到原网址
routeros
回复

使用道具 举报

发表于 2013-3-15 19:32:11 | 显示全部楼层

楼主没有做iframe的动态高度调整。期待楼主完善。
routeros
回复

使用道具 举报

发表于 2013-3-30 22:43:16 | 显示全部楼层
这个,怎么动态 ???
routeros
回复

使用道具 举报

发表于 2013-3-31 08:51:53 | 显示全部楼层
这个看样还不完善
routeros
回复

使用道具 举报

发表于 2013-3-31 09:31:29 | 显示全部楼层
测试效果 还是不够完善
routeros
回复

使用道具 举报

发表于 2013-3-31 21:17:46 | 显示全部楼层
改天试试效果
routeros
回复

使用道具 举报

发表于 2014-11-5 12:49:55 | 显示全部楼层
正需要,试一下
routeros
回复

使用道具 举报

发表于 2014-11-6 22:33:57 | 显示全部楼层
楼主厉害速度去尝试一下
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-3 03:53 , Processed in 0.086719 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表