PHP get the user browser version of the method, PHP get Browser version
The example in this article describes how PHP gets the user browser version. Share to everyone for your reference. The specific analysis is as follows:
In PHP we have a global variable $_server[' http_u
Interpretation(1) The program first establishes a form that contains two text boxes that display the current width and height of the window, and that its value varies with the size of the window. (2) in the subsequent JavaScript code, two variables winwidth and winheight are defined first to hold the window's height and width values. (3) Then, in function finddimensions (), use Window.innerheight and window.innerwidth to get the height and width of t
Interpretation(1) The program first establishes a form that contains two text boxes that display the current width and height of the window, and that its value varies with the size of the window. (2) in the subsequent JavaScript code, two variables winwidth and winheight are defined first to hold the window's height and width values. (3) Then, in function finddimensions (), use Window.innerheight and window.innerwidth to get the height and width of t
Interpretation(1) The program first establishes a form that contains two text boxes that display the current width and height of the window, and that its value varies with the size of the window. (2) in the subsequent JavaScript code, two variables winwidth and winheight are defined first to hold the window's height and width values. (3) Then, in function finddimensions (), use Window.innerheight and window.innerwidth to get the height and width of t
width of the window where the HTML document is located.
Implementation Code
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>Actual browser window height: Actual browser window width:
Source program explanation(1) The program first creates a form that contains two text boxes to display the current width and height of the window, and the value changes with the size of
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > Html Xmlns = "Http://www.w3.org/1999/xhtml" > Head > Title > Adjust the browser window Title > Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = gb2312" > Head >
Inside. NET, there is a WebBrowser control, which can be used for many purposes, many people use to customize their own browsers, this article talk about how to get the default browser settings, and how to set your browser as the default browser tips.
First look at a small interface graphics, to better understand the
) {String name = Uri.getqueryparameter ("name");String age= uri.getqueryparameter ("Age");}}This will get the value passed to the URL.—————————————————————————————————— I'm a split line ————————————————————————————————————Code copy is finished, is not very surprised to find in the browser inputMyapp://jp.app/openwith?name=zhangsanage=26Is it 404, not open?Landlord you This is not a lie! Lou Zhu, you son of
containerDocument.documentElement.scrollTop The vertical scrolling valueevent.clientx+document.documentelement.scrolltop Horizontal coordinates of relative documents + amount of vertical scrollingImplementation CodeCopy CodeThe code is as follows:"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >Actual height of browser window: Actual width of browser window: var winwidth = 0;var winheight = 0;fun
height: window.screen.availHeightScreen available work area width: window.screen.availWidthHTML Precise positioning: Scrollleft,scrollwidth,clientwidth,offsetwidthScrollHeight: Gets the scroll height of the object.ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the windowScrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the windowScrollWidth: Gets the scrolling w
work area width: window.screen.availWidthHTML Precise positioning: Scrollleft,scrollwidth,clientwidth,offsetwidthScrollHeight: Gets the scroll height of the object.ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the windowScrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the windowScrollWidth: Gets the scrolling width of the objectOffsetheight: Gets the height of
Precise positioning: Scrollleft,scrollwidth,clientwidth,offsetwidthScrollHeight: Gets the scroll height of the object.ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the windowScrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the windowScrollWidth: Gets the scrolling width of the objectOffsetheight: Gets the height of the object relative to the layout or parent c
: window.screen.availWidthHTML Precise positioning: Scrollleft,scrollwidth,clientwidth,offsetwidthScrollHeight: Gets the scroll height of the object.ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the windowScrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the windowScrollWidth: Gets the scrolling width of the objectOffsetheight: Gets the height of the object rela
,offsetwidthScrollHeight: Gets the scroll height of the object.ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the windowScrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the windowScrollWidth: Gets the scrolling width of the objectOffsetheight: Gets the height of the object relative to the layout or parent coordinates specified by the parent coordinate OffsetPare
: window.screen.availWidthHTML Precise positioning: Scrollleft,scrollwidth,clientwidth,offsetwidthScrollHeight: Gets the scroll height of the object. ScrollLeft: Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the windowScrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the window scrollwidth: Gets the scrolling width of the objectOffsetheight: Gets the height of the object re
Find a good code for using JavaScript to judge browsers and browser versions from the Web, and record this here:
Encapsulate the above code as a method that returns the Sys object, which encapsulates the browser's type and version information as follows:
function Getbrowserinfo () {
var Sys = {};
var ua = Navigator.userAgent.toLowerCase ();
var re =/(msie|firefox|chrome|opera|version). *? ([\d.] +)/;
var m = Ua.match (re
Http://itindex.net/blog/2014/11/07/1415353560000.htmlClick the URL link in your browser to launch a specific app.First make the HTML page, the page content format is as follows:This sentence will be all right.The meanings of each item are as follows:Scheme: Identify the app that starts. ※ The following details are describedHost: Proper descriptionPath: The key※ required to pass the value is not also availableQuery:
object relative to the layout or the parent coordinate specified by the OffsetTop propertyEvent.clientx horizontal coordinates of relative documentsEvent.clienty vertical coordinates of relative documentsEvent.offsetx horizontal coordinates relative to the containerEvent.offsety the vertical coordinate of the relative containerDocument.documentElement.scrollTop The vertical scrolling valueEvent.clientx+document.documentelement.scrolltop horizontal coordinates of relative documents + amount of v
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.