Javascript Event Query Synthesis

Source: Internet
Author: User
Click () object. Click () enables the object to be clicked. Closed object. whether the closed object window has closed the true/falsecleartimeout (object) clearing the setTimeout object clearinterval (object) has been set clear the setinterval object confirm ("prompt message") pop-up confirmation box, return true cancel return falsecursor: style change mouse style hand crosshair text wait help default auto E/S/W/n-resizeevent.clientX return last mouse X coordinate value; event. clienty returns the Y coordinate value of the last mouse clicked. event. offsetx returns the event of the current hover X coordinate value. offsety returns the Y coordinate value of the current mouse over document. write (document. lastmodified) The last time the webpage was updated, document. ondblclick = X when double-clicking the mouse to generate the event document. onmousedown = x click the mouse key to generate the event document. body. scrolltop; returns and sets the coordinate value of the current vertical scroll bar, which must be used with the function, document. body. scrollleft; returns and sets the coordinates of the current Horizontal Rolling task. It must work with the function, document. title document. title = "message"; the title bar Text Document of the current window. bgcolor document. bgcolor = "color value"; change the background color of the window document. fgcolor document. fgcolor = "color value"; change the text color document. linkcolor document. linkcolor = "color value"; change the hyperlinking color document. alinkcolor document. alinkcolor = "color value"; changes the color document of the link being clicked. vlinkcolor document. vlinkcolor = "color value"; change the color document of the accessed link. forms. length returns the number of form documents on the current page. anchors. length returns the number of anchors on the current page. Document. links. length returns the number of joins on the current page. Document. onmousedown = x click the mouse to trigger the event document. ondblclick = X double-click the mouse to trigger the defaultstatus window event. status = defaultstatus; set the status bar to display function XX () {...} by default (){...} define the function isnumeric to determine whether it is a number innerhtml xx = object. innerhtml: Enter the html in an object tagSource code Innertext divid. innertext = XX sets the value of the object located in the DIV named after Id to xxlocation. reload (); to refresh this page, the target can be equal to a refreshed page math. the random number of random (). It can only be a number between 0 and 1. If you want to get another number, you can set it to * 10 and then take the entire math. floor (number) converts the object number into an integer and returns all decimal places math. min (1, 2) returns 1, 2 which is a small math. max (1, 2) returns 1, 2 which is the largest navigator. appname: return the current browser name navigator. appversion: return the current browser version number navigator. appcodename: returns the current Browser Code Name: navigator. useragent returns the current browser user ID onsubmit = "Return (XX ()" using the function returned value opener opener.doc ument. object Control Original open form object prompt xx = Window. prompt ("prompt message", "pre-value"); input the statement parent. framework name. return return false return value random parameter (between 0 and 1) reset () form. reset (); reset split ("") string. split ("") separates String object characters with commas (,) to submit () form objects. submit () enables the form object to submit data. The charat (x) object of the string object returns the number of characters in the specified object. -1 indexof ("string") is not returned. From left to right, query for the specified character.-1 lowercase () is not returned. Convert all objects to lowercase uppercase () convert all objects to uppercase substring () string. substring (x, x) returns the characters setTimeout ("function", time) from 0 to 5 in the object to set a timeout object setinterval ("function", time) set a timeout object tolocalestring () X. tolocalestring () obtains the time from the X time object. The typeof (variable name) is used as the string type to check the type of the variable. The values include string, Boolean, object, function, underfinedwindow. event. button = 1/2/3 left mouse button equals 1 right button equals 2 two keys together press 3window. screen. availwidth Returns the current screen width (blank space) window. screen. availheight returns the current screen height (blank space) window. screen. width returns the current screen width (resolution value) window. screen. height returns to the front screen height (peak rate value) when there is Doc ument. body. offsetheight; returns to the front-end webpage level when Doc ument. body. offsetwidth; returns the current webpage width window. resizeTo (0, 0) sets the window width and height. moveTo (0, 0) moves the window to a certain position window. focus () enables the current window to get the focus window. scroll (x, y) the coordinates of the scroll bar in the window. y controls the up and down movement and must work with the function in combination with window. open () window. open ("Address", "name", "attribute") attributes: toolbar (toolbar), location (Address Bar), Directions, status (status bar), menubar (menu bar), scrollbar (scroll bar), resizable (resize), width (width), height (height), fullscreen (full screen ), scrollbars (in full screen mode, there is no scroll bar, no parameter, channelmode (wide screen), left (Open Window X coordinate), top (open window y coordinate) window. location = 'view-Source: '+ window. location. href application event view webpage source code; A = new date (); // create a as a new period object y =. getyear (); // The value of Y is two-digit year Y1 =. getfullyear (); // obtain the number of copies per year in four-digit years. M =. getmonth (); // obtain the month value D =. getdate (); // obtain the date value d1 =. getday (); // get The current week value H =. gethours (); // get the current hour M1 =. getminutes (); // get the current number of minutes S =. getseconds (); // get the number of objects in the current second. style. fontsize = "text size"; Unit: mm/CM/in inch/PC/PT point/PX pixel/EM text height 1In = 1.25cm1pc = 12pt1pt = 1.2px (800*600 Resolution) text font attributes: fontsize family font color fontstyle. The values are normal, italic, oblique, and fontweight. The values range from 100 to 900, and the width ranges from 900 to. Light, normal, boldletterspacing distance, change the text distance, value: 1pt, 10px, 1 cmtextdecoration: Text modifier; Value: None Not modifier, underline, overlin E. Dash Background: Text background color. backgroundimage: background image. Set the value to the insert path of the image. Click the webpage body function call trigger: 1. onclick: when an object is clicked 2. onload: When a webpage is opened, it can only be written in the body. onUnload: When a webpage is closed or left, it can only be written in the body. onmouseover 5. onmouseout when the mouse leaves the object 6. onmouseup when the mouse is released 7. onmousedown when the mouse presses the key 8. onfocus: 9. onselect: 10 when the object text is selected. onchange when the object content is changed 11. onblur when the object loses focus onsubmit = return (SS () form call, the value returned is a straight line border-bottom: 1x solid black dotted line border-bottom: 1x dotted black dotted line border- Bottom: 2x dashed black Dual Line border-bottom: 5x double black slot border-bottom: 1x groove Black Ridge border-bottom: 1x ridge black1. edge highlight glow (color = color, strength = light size) <br> 2. fliph () enables the object to flip horizontally for 180 degrees <br> 3. vertical flip flipv () enables objects to flip 180 degrees vertically <br> 4. object fuzzy blur (add = true/false direction = direction strength = intensity) add specifies whether to perform Fuzzy Direction strength fuzzy intensity by impression painting 5. object transparent alpha (opaction = 0-100, finishopacity = 0-100, style = 0/1/2/3) opaction object overall opacity value finishopacity when the object uses When the gradient transparency is reached, the opacity value of the end transparency position is specified. The style specifies that the transparency Mode 0 indicates the overall transparency, 1 indicates the linear transparency, 2 indicates the circular transparency, and 3 indicates the rectangular transparency. remove the color chroma (color = color value) so that the color in the object is transparent in the same area as the Specified Color 7. create a shadow dropshadow (color = shadow color, offx = horizontal deviation from the left pixel, offy = horizontal downward deviation from the pixel) 8. color-removing gray (): displays the object in gray scale. 9. negative Effect invert () to make the object negative effect 10. highlight light () makes the object Black 11. mask mask (color = color) so that the entire object is masked with a specified color. 0 ~ 100. The 0 table is completely transparent, and the table is completely opaque. 0 ~ 100. the shape of the transparent area of the style table. table 0 has a uniform shape. 1 Table linear. 2 X radiation. 3. Table rectangle. startx. the X and Y coordinates at the beginning of the gradient transparency effect in the starty table. coordinates of X and Y at the end of the finishx and finishy gradient transparency effect. add to determine whether the original target is used in the blur effect. the value is 0. For example, 1.0 table "no", 1 Table "yes ". sets the direction of The Blur. the 0-degree table is vertical up, and 45-degree is a unit. the default value is 270 degrees to the left. left, right, down, up. strength can only be determined by integers. it indicates the number of pixels whose width will be blurred. the default value is 5. the color must be transparent. offx and offy are respectively the offsets of shadows in the X and Y directions. positive refers to the projection method. 0 table transparent pixels generate shadow. the table 1 only provides shadow generated by opaque pixels .. addambient: adds a surrounded light source. addcone: Add a conical light source. addpoint added to the light source changcolor: change the color of the light. changst Renew: changes the intensity of the light source. clear: Clear all light sources. movelight: mobile light source. freq is the ripple frequency. It specifies the number of finished ripple to be generated in the area on the object. lightstrength can be used to enhance the effect of ripple-shaped light and shadows. significant 0 ~ 100 positive integer. the start position of the sine wave is 0 ~ 360 degrees. table 0 starts from 0 degrees, and Table 25 starts from 90 degrees. the amplitude of the Strength table. hand style = "cursor: Hand" crosshair style = "cursor: crosshair" text style = "cursor: Text" Wait style = "cursor: Wait" Default style = "cursor: default "Help style =" cursor: Help "e-resize style =" cursor: E-resize "Ne-resize style =" cursor: ne-resize "N-resize style =" cursor: N-resize "NW-resize style =" cursor: NW-resize "w-resize style =" cursor: w-resize "s-resize style =" cursor: S-resize "Sw-resize style =" cursor: Sw-resize "Se-resize style =" cursor: se-resize "auto style =" cursor: Auto"
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.