标题:求助
只看楼主
tx5034
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-10-6
 问题点数:0 回复次数:0 
求助
<%
url=StarUrl&"files/article/html/"&request.querystring("id")
Html=GetPage(url)
title=GetContent(Html,"<title>","</title>",0)
title=replace(title,"玄幻小说阅读网","98小说书库")
ids=GetContent(Html,"/files/article/attachment/","/",0)
page=GetContent(Html,"text/css"" media=""all""  />","</head>",0)
page=replace(page,"= ""","= ""html.asp?id="&id&"/")
Pictures=GetContent(Html,"<head>","</html>",0)
Pictures=replace(Pictures,"<a href=""","<a href=""html.asp?id="&ids&"/")
%>



所取的目标地址是/files/article/attachment/5/5538/1145770/775920.gif
但我只需要/5/5538/但实际用ids=GetContent(Html,"/files/article/attachment/","/",0)这个只取了]/5/一个哪怎么办呢


注/files/article/attachment/5/5538/1145770/775920.gif是个变化地址/5/5538/也要跟着变的
2008-10-06 14:39



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-236629-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.240155 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved