JavaScript event Query synthesis

Source: Internet
Author: User
Tags date integer join key query split variable window



JavaScript event query synthesis click () object. Click () to cause the object to be clicked. Closed object. Closed Object window is closed True/falsecleartimeout (object) clears the set SetTimeout object Clearinterval (object) Clears the set SetInterval object Confirm ("Prompt info") Pop-up confirmation box, determining return True Cancel return Falsecursor: Style change mouse style hand crosshair text wait help default auto e/ S/w/n-resize

Event.clientx return to the last click of the mouse X coordinate value; Event.clienty returns the last click of the mouse y coordinate value; event.offsetx returns the current mouse hover x coordinate value event.offsety returns the current mouse hover Y coordinate value

document.write (document.lastmodified) Web page last update time document.ondblclick=x when you double-click the mouse to produce an event document.onmousedown=x click the mouse button to produce an event

Document.body.scrollTop; Returns and sets the coordinate value of the current vertical scroll bar, which must be matched with the function and document.body.scrollLeft; Returns and sets the coordinate value of the current transverse rolling service, must cooperate with the function, Document.title document.title= "message"; The title bar text of the current window Document.bgcolor document.bgcolor= "color value"; Change the window background color document. Fgcolor document. fgcolor= "color value"; Change body color Document.linkcolor document.linkcolor= "color value"; Change the hyperlink color document.alinkcolor document.alinkcolor= "color value"; Change the color document of the join being clicked. Vlinkcolor document. vlinkcolor= "color value"; Change the color of an access join Document.forms.length returns the current page form form singular document.anchors.length returns the number of current page anchors Document.links.length Returns the number of current page joins Document.onmousedown=x mouse to trigger events document.ondblclick=x double click to trigger events defaultstatus Window.status=defaultstatus; Set the status bar to the default display

function function xx () {...} Defines a function isnumeric whether it is a numeric InnerHTML xx= object. InnerHTML Enter the HTML source code in the label of an object innertext divid.innertext=xx will be named with Div to ID The object value is set to XX

Location.reload (); To refresh this page, target can be equal to a refreshed page

Math.random () The number of random culvert, can only be between 0 to 1, if you want to get other numbers, you can *10, and then take the whole Math.floor (number) to an integer, give all decimal math.min (1,2) return 1,2 which small m Ath.max (1,2) return to 1,2 which big

Navigator.appname returns the current browser name Navigator.appversion returns the current browser version number Navigator.appcodename Returns the current browser code name navigator.useragent Returns the current browser user token

OnSubmit onsubmit= "return (XX ())" Returns the value opener Opener.document using the function. Object controls the original open Form object

Prompt xx=window.prompt ("hint info", "predetermined value"); Input statement parent parent. Frame name. Object Control frames page

Return returned false returns the value random random parameters (between 0 and 1) reset () Form.reset (); Reset the data in form forms

Split ("") String.Split ("") separates the string object word specifier comma from the submit () Form object. Submit () Make a Form object submit data

The CharAt (x) object of a String object returns the letter LastIndexOf ("string") of the number of digits of the specified object to the specified character from the right to the left, without returning-1 indexOf ("string") to find the specified character from left to right, without returning Back to -1 lowercase () converts the object to lowercase uppercase () to all uppercase substring (0,5) string.substring (x,x) returns the characters from 0 to 5 in the object Settimeou T ("function", time) sets a timeout object SetInterval ("function", time) to set a timeout object

toLocaleString () x.tolocalestring () Gets the time from the X-time object, with the typeof (variable name) in the string form, checking the type of the variable, with the value: String,boolean,object,function, underfined

WINDOW.EVENT.BUTTON==1/2/3 the left key is equal to 1 right key is equal to 22 keys to return the current screen width (blank space) by pressing as 3window.screen.availwidth Window.screen.availHeight Returns the current screen height (blank space) window.screen.width  returns the current screen width (resolution value) window.screen.height  returns the current screen height (resolution) Window.document.body.offsetHeight; Returns the current page height window.document.body.offsetWidth; Back to the current page width Window.resizeto (0,0)   Set the window wide Window.moveto (0,0)   Move the window to a location Window.focus ()   Causes the current window to have the Focus window.scroll (x,y) window scroll bar coordinates, y control moves up and down, must match with function window.open ()   window.open ("Address", "name", "Property")    properties: Toolbar (toolbar), location (address bar), Directions,status (status bar),   menubar (menu bar), scrollbar (scroll bar), resizable (change size),   Width (width), height (high), fullscreen (full                                       screen), scrollbars (no scroll bar without parameters in full screen, Channelmode (widescreen), left (open window x coordinates), Top (open window y coordinate)                          window.location = ' View-source: ' + window.location.href   Application Event View Web page source code;

A=new Date (); Create a for a new period object y=a.getyear (); The value of Y is a two-digit year y1=a.getfullyear () for the year value obtained from Object A.  Obtain the annual number of four-digit years m=a.getmonth ();  Gets the month value d=a.getdate ();  Gets the date value d1=a.getday ();  Gets the current week value h=a.gethours (); Gets the current number of hours m1=a.getminutes (); Gets the current number of minutes s=a.getseconds (); Get the current number of seconds

object. style.fontsize= "Text size"; Unit: mm/cm/in inch/pc/pt point/px pixel/em text High 1in=1.25cm1pc=12pt1pt=1.2px (800*600 resolution)

Text Font properties: FontSize size family font color color FontStyle style, the value is normal, italic italic, oblique italic and bold fontweight bold, take values ranging from 100 to 900, 900 the thickest, l Ight,normal,bold letterspacing spacing, change the distance between the text, value is, 1pt,10px,1cm textdecoration: Text decoration, value, none not modified, underline underline, Overline background: Text background color, backgroundimage: Background picture, take value as the insert path of the picture

Click the page body function to invoke the trigger:

1.onClick when the object is clicked 2.onLoad when the page is opened, can only write in the body 3.onUnload when the page closes or leaves, can only write in the body 4.onmouseover when the mouse hovers over its 5.onmouseout When the mouse leaves the object 6.onmouseup when the mouse loosens 7.onmousedown when the mouse presses the key 8.onFocus when the object gets the focus 9.onSelect when the object's text is selected 10.onChange when the object's contents are changed 11.onBlur Value returned when the object loses focus Onsubmit=return (SS ()) Table monotony

Straight border-bottom:1x solid black dotted border-bottom:1x dotted black dot dash border-bottom:2x black double Line border-bottom:5x Double black grooved border-bottom:1x Groove Black Ridge border-bottom:1x Ridge Black

1. Edge Highlights Glow (color= color, strength= brightness size) <br>2. Flip horizontal Fliph () to flip the object horizontally to 180 degrees <br>3. Flip the FLIPV () vertically to flip the object 180 degrees vertically <br >4. Object blur Blur (Add=true/false direction= Direction strength= intensity) add specifies whether the fuzzy direction fuzzy direction strength fuzzy intensity 5. Object Transparent Alpha ( OPACTION=0-100,FINISHOPACITY=0-100,STYLE=0/1/2/3) Opaction an opaque value of an object as a whole finishopacity the opacity value of the specified end transparent position when the object utilizes transparency the style specifies transparent mode 0 for overall transparency, 1 for line style transparency, 2 for circular transparency, 3 for rectangular transparent 6. Remove Color chroma = color value makes the color of the object transparent to the same area as the specified color 7. Create Shadow DropShadow (color= shadow color, offx= horizontal to left pixel, offy= horizontal down pixels) 8. Color Gray () to make the object appear grayscale 9. Negative effect Invert () Causes the object to be negative 10. High-light light () makes the object appear black 11. Obscures the Mask (color= color) to make the entire object mask the specified color once

Opacity table transparency level. The 0~100,0 table is fully transparent and the 100 table is completely opaque finishopacity the gradient transparency effect that the table wants to set. 0~100.style The shape of the table's transparent area. 0 Table uniform shape. 1 Table linear. 2 Table radial. 3 table Rectangular. Startx.starty The x and Y coordinates at the start of the gradient transparency effect of a table. Finishx,finishy gradient Transparency ends X,y The coordinates. Add has to determine whether there is an original target in the blur effect. The value is 0,1.0 table "No", 1 table "yes". Direction sets the direction of the blur. The 0 degree table is vertical up and 45 degrees is one unit. The default value is 270 degrees to the left. Left,right,down, Up.strength can only be determined with integers. The width of the number of pixels is affected by the blur. The default is 5. Color to be transparent. Offx,offy is x,y. The offset of the direction shadow. Positive refers to the projection way. 0 Table transparent pixels generate a shadow. 1 tables give only opaque pixels to create a shadow ...

Addambient: Join the surround light source. Addcone: Add cone light source. Addpoint Add Point Light source changcolor: Change the color of the light. Changstrength: Change the intensity of the light source. Clear: Clears all the lights. Movelight: Move the light source.

The freq is the frequency of the ripples and the number of finished ripples that are required to be generated on the object's upper area. Lightstrength can enhance the effect of light and shade for ripple. Significant 0~100 positive integer, sine wave start position is 0~360度. The 0 table starts at 0 degrees and the 25 table starts at 90 degrees. Strength table amplitude size.

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.