⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news2.asp

📁 自由领域ASP+WAP同学录(V1.0)系统是一套仿ChinaRen的即可用电脑浏览又可以用手机访问的互动同学录单班级系统。这套系统同学录系统可以满足现在WAP普及的今天同学用手机上网交流的需求
💻 ASP
字号:
<% 
Function bytes2BSTR(vIn) 
strReturn = "" 
For i = 1 To LenB(vIn) 
ThisCharCode = AscB(MidB(vIn,i,1)) 
If ThisCharCode < &H80 Then 
strReturn = strReturn & Chr(ThisCharCode) 
Else 
NextCharCode = AscB(MidB(vIn,i+1,1)) 
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) 
i = i + 1 
End If 
Next 
bytes2BSTR = strReturn 
End Function 
sub show
Url = "http://dailynews.sina.com.cn/news1000.shtml" 
set oSend=createobject("Microsoft.XMLHTTP") 
SourceCode = oSend.open ("GET",url,false) 
oSend.send() 
SourceCode = bytes2BSTR(oSend.responseBody) 
betw=instr(SourceCode,"<!--新闻结束-->")-instr(SourceCode,"<li>") 
first=instr(SourceCode,"<li>") 
SourceCode = Mid(SourceCode,first,betw) 
SourceCode = split(SourceCode,"<li>")
for i=1 to 10  ' 这里修改需要显示新闻的数目
sss = split(SourceCode(i),">")
SourceCodecon=left(sss(1),int(len(sss(1)))-3)
SourceCodelink=mid(sss(0),15,len(sss(0))-29)
response.write "<li><a href='disp.asp?url="&SourceCodelink&"&topic="&SourceCodecon&"'>"&SourceCodecon&"</a>"
next
end sub
%> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -