%set bc=server.CreateObject("mswc.browsertype")%> 瀏覽器名稱是browser:%=bc.browser%>br> 瀏覽器版本是version:%=bc.version%> br> 瀏覽器主版本是majorver:%=bc.majorver%> br> 瀏覽器輔版本是minorver:%=bc.minorver%> br> 瀏覽器的運行平臺是platform:%=bc.platform%> br> |
%set bc=server.CreateObject("mswc.browsertype")%> %if bc.frames=true then%> 瀏覽器支持多窗口(frames)顯示 %else%> 瀏覽器不支持多窗口(frames)顯示 %end if%> br> %if bc.backgroundsounds=true then%> 瀏覽器可以播放背景音樂(backgroundsounds) %else%> 瀏覽器不能播放背景音樂(backgroundsounds) %end if%> br> %if bc.tables=true then%> 瀏覽器支持表格(tables)顯示 %else%> 瀏覽器不支持表格(tables)顯示 %end if%> br> %if bc.beta=true then%> 你的瀏覽器是一測試版(beta) %else%> 你的瀏覽器是一正式版 %end if%> br> %if bc.activexcotrols=true then %> 瀏覽器支持active控制 %else%> 瀏覽器不支持active控制 %end if%> br> %if bc.cookies=true then%> 瀏覽器支持cookie功能 %else%> 瀏覽器不支持cookie功能 %end if%> br> %if bc.vbscript=true then%> 瀏覽器支持vbscript %else%> 瀏覽器不支持vbscript %end if%> br> %if bc.jscript=true then%> 瀏覽器支持jscript %else%> 瀏覽器不支持jscript %end if%> |
%set bc=server.CreateObject("mswc.browsertype") if bc.frames then %> frameset rows="*,*"> frame src="http://www.google.com"> frame src="http://www.baidu.com"> /framest> %else%> 你的瀏覽器不支持框架 %end if%> |
redirect.asp?url=http://www.cnbruce.com/ cnbruce.com redirect.asp?url=http://www.blueidea.com/ blueidea.com redirect.asp?url=http://www.it365cn.com/ it365cn.com |
%Set objNextLink = Server.CreateObject("MSWC.Nextlink")%> % intCount = objNextLink.GetListCount("link.txt") For i = 1 To intCount %> a href="%=objNextLink.GetNthURL("link.txt", i) %>"> %=objNextLink.GetNthDescription("link.txt", i) %> /a> br> %Next%> |
% Response.Clear Response.Redirect Request.QueryString("url") %> |
1.asp ASP編程入門進階(一) 2.asp ASP編程入門進階(二) 3.asp ASP編程入門進階(三) 4.asp ASP編程入門進階(四) |
%Set Nextlink=Server.CreateObject("MSWC.NextLink") Response.write "當前文章索引號為" NextLink.GetListIndex("link1.txt") "br>" Response.write "上一章的標題:" NextLink.GetPreviousDescription("link1.txt") "br>" Response.write "下一章的標題:" NextLink.GetNextDescription("link1.txt") "br>" count = NextLink.GetListCount("link1.txt") Response.write "a href="""NextLink.GetNthUrl("link1.txt",1)""">""第一章""/a> " Response.write "a href="""NextLink.GetPreviousUrl("link1.txt")""">""上一章""/a> " Response.write "a href="""NextLink.GetNextUrl("link1.txt")""">""下一章""/a> " Response.write "a href="""NextLink.GetNthUrl ("link1.txt",count)""">""最后一章""/a>br>" %> |
GetListCount(目標文件名) 顯示組件中包含的連接的文件數目。 GetListIndex(目標文件名) 顯示當前頁在這些連接文件中的前后位置索引值。 GetNextDescription(目標文件名) 顯示連接文件中下一個的描述。 GetNextURL(目標文件名) 顯示連接文件中的下一個文件的URL地址。 GetNthDescription(目標文件名, N) 顯示連接文件中第N個網頁的描述。 GetNthURL(目標文件名, N) 顯示連接文件中第N個網頁的文件URL地址。 GetPreviousDescription(目標文件名) 顯示連接文件中前一個文件的描述。 GetPreviousURL(目標文件名) 顯示連接文件中前一個文件的URL地址。 |
!--#include file="link1.inc"-->br> 以下是具體內容 |