JavaScript event query comprehensive

xiaoxiao2021-03-13  212

JavaScript event query integrated Click () object. Click () makes an object being clicked. Closed object. Theclosed object window has closed true / falsertimeout (object) Clear Setting SETTIMEOUT Object ClearInterVal Clear Setting SetInterval Object Confirm ("Tips") pop-up confirmation box, determine that Return true Cancel Back Falsecursor: Style Change mouse style Hand crosshair text Wait Help Default Auto E / S / W / N-Resize

Event.clientx Returns 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) page last update time Document.οndblClick = x When you double-click the mouse to generate the event document.οnmοusedοwn = x Click the mouse button to generate events

Document.body.scrolltop; return and set the coordinate value of the current vertical scroll bar, with the function, Document.Body.Scrollleft; return and set the coordinate value of the current transverse roller, must cooperate with the function, Document.Title Document. Title = "message"; Title Bar text Document.bgcolor Document.bgcolor = "Color Value"; Change Window Background Color Document.FgColor Document.FgColor = "Color Value"; change the text color Document.LinkColor Document.linkColor = "Color value"; change the superposed color Document.alinkColor Document.alinkColor = "Color Value"; change the color Document.VlinkColor Document.VlinkColor = "Color Value" that is clicked on the join connection; change the color of the Access Connection Document.Forms.LENGTH Returns the quantity of the current page ANCHORS.LENGTH Document.Links.Length Returns the number of current page Document.οnmοusedοwn = x Click Mouse to trigger the event document.οndblclick = x Double-click the mouse to trigger event defaultstatus Window. Status = defaultStatus; set the status bar to default display

Function function xx () {...} Definition function isnumeric determines whether it is a digital innerhtml xx = object. InnerHTML Enter the HTML source code in an object tab INNERTEXT DIVID.INNERTEXT = XX will be set to ID Named object values ​​with ID. Xx

Location.Reload (); make this page new, Target can be equal to a refresh page

Math.random () randomly, can only be 0 to 1, if you want to get other numbers, you can turn the object Number to an integer, take all the object Number to an integer. Decons Math.min (1, 2) Returns 1,2 which small Math.max (1, 2) returns 1,2 which

Navigator.appname Returns the current browser name Navigator.appversion Returns the current browser version number Navigator.Appcodename Returns the current browser code Navigator.USERAGENT Return to the current browser user logo

OnSubmit οnsubmit = "Return (xx ())" uses the function return value Opener Opener.Document. Object controls the original Open Form Object Prompt XX = WINDOW.PROMPT ("Tip Information", "Subscribed Value"); Enter Statement Parent Parent. Frame name. Object control frame page

RETURN RETURN FALSE Return Value Random Random Parameters (0 to 1) RESET () form.reset (); reset data in the Form form

Split (") String.split (" ") Use the String object character with a comma Submit () form object. Submit () makes the FORM object submitted data

The CHARAT (X) object for the String object reflects the number of alphabets of the specified object. Last IndexOf ("string") is specified from the right to left, and does not return -1Indexof ("string") from left to right quance specified character. Nothing to return -1LowerCase () Transform the object to lowercase Uppercase () Transfer the object to the uppercase substring (0, 5) string.substring (x, x) Return to the character settimeout from 0 to 5 ("function" , TIME) Set a timeout object setInterval ("Function", TIME) Set a timeout object

TOLOCALESTRING () X.Tolocalestring () Gets time from the X time object, with a TypeOf (variable name) check variable in string type, value: string, boolean, object, function, underfined

Window.event.button == 1/2/3 Mouse button left mock equal to 1 Right click together to press 3Window.Screen.availWidth Returns the current screen width (blank space) WINDOW.SCREEN.AVAILHT Return to 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 value) Window.Document.body.offsetHeight; return to the current web height window.Document.body.offsetwidth Returns the current web width window.resizeto (0, 0) Set the window to Window.moveto (0, 0) to move the window to a location. Focus () gets the current window WINDOW.SCROLL (X, Y) Window scroll bar coordinates, Y control up and down movement, with the function to cooperate with Window.Open () Window.Open ("Address", Name, Properties "Properties: Toolbar, Location, Directions , Status, Menubar, Scrollbar, Resizable (Change Size), Width (Wide), Height (High), Fullscreen (full screen), Scrollbars (no scroll bar when full screen, ChannelMode, Left (Open Window X Coordinate), TOP (Open Window Y Coordinate) Window.Location = View-Source: WINDOW.LOCATION.HREF Application Event View web source code;

A = new date (); // Creating a a new period object y = a.GetyEAR (); // Y value is from the object A to obtain a year value of two bits of years Y1 = A.Getfullyear (); // Get the number of four years in the year m = a.getmonth (); // Get the month value d = a.getdate (); // Get date value D1 = A.getDay (); // Get the current week Value h = A.GETHOURS (); // Gets the current hour number m1 = A.GETMINUTES (); // Get the number of current minutes s = A.GetSeconds (); // Get the current second number object .Style.FontSize = "Text size"; unit: mm / cm / in in in in in in-PC Pa / 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, value Normal, Italic, oblique, bold, bold fontweight, valued, 900, Light, Normal, Boldletterspacing spacing To change the inter-text distance, value, 1pt, 10px, 1cmtextDecoration: text modification, value, None unpaired, underline Underline, overline upper lineround: text background color, BackgroundImage: background picture, value for picture path

Click on the web page text function call trigger:

1.onclick When the object is clicked 2.onload When the web is opened, you can only write it in a body. 3.onload When the web is closed or left, can only write in Body 4.onmouseover When the mouse is on it 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 When the object gets the focus, 9.onselect When the object's text is selected, 10.onchange When the content is changed 11.onblur Object Losing Focus οnsubmit = Return (SS ()) Type The value returned when tune

Border Border-Bottom: 1x Solid Black Dotted Border-Bottom: 1x Dotted Black Distiring Border-Bottom: 2x Dashed Black Double-Line Border-Bottom: 5x Double Black Slot Border-Bottom: 1x Groove Black Ridge Border-Bottom: 1x Ridge Black

1. Edge high light glow (color = color, strongth = light size)
2. Horizontally flip FLIPH () to turn object level 180 degrees
3. Vertically flip FLIPV () Make the object vertically flip 180 degrees
4. Object Fuzzy Blur (add = true / false Direction = direction strength = intensity) add specifies whether to fuzz in the fuzzy direction of the Direction in the Direction Function 5. Object Transparent Alpha (Opaction = 0-100, Finishopacity = 0-100 , style = 0/1/2/3) Opaction Objects Integral opaque value Finishopacity When the object uses progressively transparent, the opaque value of the end transparent position specifies the transparent mode 0 is the overall transparent, 1 is linear transparent, 2 is Circular transparent, 3 is a rectangular transparent 6. Removal color chroma (color = color value) Transparent in the same area in the object with the specified color 7. Create a shadow DROPSHADOW (color = shadow color, OFFX = horizontally zone from pixels, OFFY = Horizontally deviate from pixels) 8. Delivery gray () makes the object grayscale 9. Negative sheet effect invert () makes the object with a negative effect 10. Highlight Light () makes the object black display 11. Cover Mask (color = color ) Make the entire object with a specified color. The Opacity table transparency level .0 ~ 100,0 table is completely transparent, 100 tables completely opaque Finishopacity table wants to set the gradient transparent effect .0 ~ 100.Style table transparent zone. 0 Table Uniform shape. 1 Table line shape .2 table radial shape .3 The top of the surface is square. StartX.starty surface gravity transparent effect starts X and Y coordinate. Finishx, finishy gradient transparent effect, X, Y coordinate. ADD Determine if there is an original goal in the fuzzy effect. The value is 0, 1.0 table "No", 1 table "Yes" .direction set the blur direction. The0 degree table vertical up, 45 degrees is one unit. The default is to Left 270 degrees .left, right, down, up.streamTh can only be determined by integers. The width of how many pixels represent will be blurred. The default is 5.color to transparent color .offx, OFFY is X, The shift of the Y direction shadow .positive refers to the projection method .0 table transparent pixel generation shadow. 1 table only gives an opaque pixel generation shadow ..

Addambient: Add the enclosed light source. ADDCONE: Add a tapered light source. AddPoint Add Point Light Source CHANGCOLOR: Change the color of the light. Changstrength: Change the strength of the light source. CLEAR: Clear all the light sources. MoveLight: Move the light source.

FREQ is the frequency of corrugation, and how many per exercises are required to generate in a region on the target. LightStrength can effect on the effect of ripple enhanced light and shadow. Significant 0 ~ 100 positive integers, the sine wave start position is 0 ~ 360 degrees. 0 tables start from 0 degrees, and 25 tables start from 90 degrees. Stregth Table Amplitude.

转载请注明原文地址:https://www.9cbs.com/read-129112.html

New Post(0)