ie上浏览wap,功能类似 http://www.baowap.com/ie/

yangxuhua 2007-05-16 09:05:57
功能和他的一样,就是要在ie上不装任何插件就能浏览wap网站,看过uucun的,也做的很好,但不知道他们这些是如何实现的。?

我现在做的这个 http://www.sscoms.com/index1.asp 有点问题。我只能读取
http://www.baowap.com/ie/ 这个页面的内容,但点转到后,还是跑到 http://www.baowap.com这里去了,而且页面也撑宽了

以下是,右边包含文件:test.asp的代码:

<!--#include file="function.asp"-->
<%
'http://www.baowap.com/ie/?u=http://wap.ss.net.cn
urlstr="http://www.baowap.com/ie/?u="
url=trim(request.Form("u"))
url2=request.QueryString("u")
if url="" then url="http://wap.ss.net.cn"
url_to=urlstr
a = GetURL(url_to)
formstart=""
'a=replace(a,"http://www.baowap.com/ie?u=","")
a=replace(a,"宝蛙WAP在线浏览器、宝蛙在线Wap模拟器,无需安装插件,直接在线轻松浏览精彩Wap网站!","盛世通讯")
'a=replace(a,"baowap.com","sscoms.com")
'a=replace(a,"<form action=""http://www.baowap.com/ie"" method=""get"" name=""form"" target=""_self"" id=""form"">","<form action=""test.asp"" method=""get"" name=""form"" target=""_self"" id=""form"">")
a=replace(a,"http://www.baowap.com/ie?u=","http://www.sscoms.com/ie?u=")
a=replace(a,"<a href=""http://www.baowap.com"" target=""_blank"">","<a href=""http://www.sscoms.com"" target=""_blank"">")
a=replace(a,"WAP浏览器","盛世通讯")
a=replace(a,"maiwapie/button.gif","pic/goto.gif")
a=replace(a,"maiwapie/baoie02.gif","pic/baoie02.gif")
a=replace(a,"maiwapie/baoie01.gif","pic/baoie01.gif")
a=replace(a,"width=""222""","width=""200""")
a=replace(a,"WIDTH: 222px","WIDTH: 200px")
a=replace(a,"<input name=""u"" type=""text"" id=""u"" tabindex=""1"" value=""http://"" size=""25"" />","<input name=""u"" type=""text"" id=""u"" tabindex=""1"" value=""http://wap.ss.net.cn"" size=""20"" />")
if len(a)=0 then
response.Write("sdf")
else
response.Write(a)
end if
%>

请高人指点。。。。。
...全文
675 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangxuhua 2007-05-18
  • 打赏
  • 举报
回复
我已经解决
wtogether 2007-05-17
  • 打赏
  • 举报
回复
不需要信任级,ie中级安全设置就可以,现在的2003默认是高级安全,中级安全是AJAX必须环境
yangxuhua 2007-05-17
  • 打赏
  • 举报
回复
这个有点问题,我用过,客户端有时打不开,要设置ie的安全级别,(将当前站点添加到受信任站点里才可以)
wtogether 2007-05-16
  • 打赏
  • 举报
回复
http://www3.webng.com/mocom

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧