-
Passed""You can see the content of the object, and then judge its browser.
set bt = "")
if "ie" then
browsertype = "msie"
elseif "netscape" thenbrowsertype = "netscape"
elseif "lynx" then
browsertype = "lynx"
end if
Operating system: function system(info)info=
if instr(info,"nt ")>0 thensystem="windows xp"
elseif instr(info,"nt ")>0 thensystem="windows 2000"
elseif instr(info,"nt 4")>0 thensystem="windows nt"
elseif instr(info,"98")>0 thensystem="windows 98"
elseif instr(info,"me")>0 thensystem="windows me"
elseif instr(info,"95")>0 thensystem="windows 95"
else system="Unknown operating system! "
end if
Your operating system is:"&system&""
end function
Native IP: <%="remote_addr"%> server name: <%="server_name"%> server ip:
Path to this file: <%="script_name"))% Number of server CPUs: <%="number_of_processors")%>
Server Interpretation Engine: <>
Server operating system: <%="os")%>
Supported file types: <%="http_accept"Path to the file accessed by %>: <%="http_url"%> User's information:
="http_user_agent"%> get the file name and passed value in the URL: <%="script_name")+"?"+"query_string"%> can get some of the URLs of this page).
-
All sizes, the last 2 are what you want, take a look at them all.
The full text of the body of the webpage is wide: ;
The full text of the body of the webpage is high: ;
The web page is swept away high: ;
The page is swept away to the left: ;
On the body of the page: ;
Left in the body of the page: ;
High screen resolution: ;
Width of screen resolution: ;
Screen available workspace height: ;
Width of the available workspace on the screen: ;
-
I generally use this method to get the type of browser.
dim browserstring
browserstring = "http_user_agent")
browserstring = lcase(browserstring)
dim brofirefox,bromsie,broopera,browap
brofirefox = "firefox"
bromsie = "msie"
broopera = "opera"
browap = "wap"
If it's Firefox
if instr(browserstring, brofirefox) <0 then
end if
If it's MSIE
if instr(browserstring, bromsie) <0 then
end if
If it's opera
if instr(browserstring, broopera) <0 then
end if
If it's a wap (haven't used it, so it depends on the result of the HTTP user agent).
if instr(browserstring, browap) <0 then
end if
-
<% set bc = "") % Establishment Object <%.
if ( then
URL address"
elseif ( then
elseif ……
Just a hint, it seems like this, I forgot. I'm sorry.
-
Different browsers and different versions of the same browser support different features.
In your application, you may need to determine what type of browser the user is using to view the page, and you may need to determine whether that browser supports certain features.
-
I don't know how you are, depending on your problem, the understanding should be that you use a static page, and then JS calls the asp handler, giving you an idea, I hope it helps.
1. Use js to get the browser width first, and assign the value directly to the asp file.
2. JS displays the ASP processing result on the page.
To put it simply, it is to use ajax to solve it, and if you know ajax, this problem should be easy.
-
It can be obtained with js.
Application 1; The judgment resolution is 800x600
Application 2; Judge the dim objbrowscap with a resolution of 1024x768asp
set objbrowscap = "")dim swidth,sheight
swidth = 'The width of the client's browser resolution.
sheight = 'The height of the client's browser resolution.
dim awidth,aheight
awidth = 'The width of the client's browser page.
aheight = 'Highly supplemented client browser pages: If you're on a 2003 system, the ASP component that comes with IIS is turned off by default.
To enable the above configuration, you must first find the corresponding connection library file, as follows:
If you can't find the above files, you can find the corresponding files in a WinXP system with IIS installed (in the "C: Windows System32 Inetsrv" directory) and copy them to the corresponding directory of your machine.
with"regsvr32"Order registration formation. For example: regsvr32 c: windows system32 inetsrv
-
Actually, it's okay to use JS.
Assign the width obtained by js to the hidden text, and asp can get the value of the hidden field.
-
Are you trying to achieve:
Is the big screen showing more words, and the smaller screen showing a little less?
Then you use js to get the width and then assign the appropriate width to that div, which requires ajax
-
It can be used in ASP"remote_addr") to obtain the client's IP address, but if the client is using the **server to access, it will get the IP address of the **server, not the real client IP address. If you want to get the real IP address of the client through the ** server, you need to use it"http_x_forwarded_for") to read.
-
Hello, Get the current url address.
Browser.
Operating system.
cp=getosnamebyuseragent(;
Browser version number.
/ ****。
Obtain the name of the operating system based on the user agent
private string getosnamebyuseragent(string useragent)
else if ("nt "))
else if ("nt "))
else if ("nt 5"))
else if ("nt 4"))
else if ("me"))
else if ("98"))
else if ("95"))
else if ("mac"))
else if ("unix"))
else if ("linux"))
else if ("sunos"))
return osversion;}
-
You can write a hidden form, with a hidden iframe, and automatically submit it in a scripting language such as js when the web page is opened
html][/html]
Of course. var correctwidth=800var correctheight=600 can be set by yourself.
It's about asp.
Just add this paragraph.
Compare the rough Qingru: You Huai Xing wants your web page to ask the other party to be 800 * 600.
Add the above **, but modify it.
-
function browser(text)if instr(text,"")>0 thenbrowser="internet explorer "
elseif instr(text,"Suspicion")>0 thenbrowser="internet explorer "Elseif Instr(text,"") thenbrowser="internet explorer "
elseif instr(text,"") thenbrowser="internet explorer "
elseif instr(text,"")>0 thenbrowser="internet explorer "
end if
end function
Arguments. There doesn't seem to be anything wrong with that. Is there a mistake in the previous one.
I think the data type of asp should be the data type of vb. >>>More
select * from table name where lab='101'and name='Sulfuric acid', don't know your table structure, so to give you the simplest select, you can talk about your table structure.
In order, remember to turn it off when you are finished.
1. Register the component first: (The component is: ..).NET Framework) Start running cmd execution command: >>>More
By default, the order by publication time is changed like this: >>>More