Code collection

xiaoxiao2021-03-06  39

1. How can I take the RealPlayer file to make a audition connection on the web?

2. How to remove the up and down scroll bar of IE?

3. How do I get a focus when opening a page?

If the form does not have a name, you can use document.forms [index] to access if the form does not have the name can be used with document.forms [index] .Elements [index] array access here INDEX is an integer such as:

>

>>>

>

4. What is the difference between Event.x and Event.ClientX?

Event.Clientx Returns the X coordinate of the mouse relative to the customer window when the event occurs

Event.x is also the same

But if you set the location attribute value of the event object is Relative

Event.ClientX does not change

Event.x Returns the coordinates of the ontology of the event object

Event represents the status of the event, such as elements of the event, the location of the mouse, etc., the EVENT object is only valid during the event process.

EVENT attribute:

AltKey

Retrieve the current state of the ALT key

Possible value True is off

False is not closed

Button

Retrieve the mouse button

Possible value: 0 No button

1 Press the left button

2 Press Right click

3 Press the left right button

4 Press the middle key

5 Press the left button and the middle key

6 Press the right button and the middle key

7 Press all keys

Cancelbubble

Set or retrieve whether the current event bubbles the event handle

Possible value: False Enables bubble

TRUE Cancel the event bubble

Clientx

Retrieve the X coordinate of the mouse cursor related to the window customer area, the property is read-only, no default.

CLIENTY

Retrieving the y coordinates of the mouse cursor related to the window customer area, attribute is read-only, without default.

CtrlKey

Ctrlkey retrieves the current state of the CTRL key

Possible value True is off

False is not closed

Datafld

Retrieve the column affected by the ONCELLCHANGE Master

ATRANSFER

Provide a predefined clipboard for drag and drop operations. ELEMENT

Search Object Pointer Exited during OnMouseOver and OnMouseout events

Keycode

Set or retrieve the Unicode keyword code associated with keywords that raise events

This property is working with OnkeyDown Onkeyup OnkeyPress

If there is no keyword, the value is 0

Offsetx

Retrieve the horizontal coordinates of the mouse position related to the object of the trigger event

Offsety

Retrieve vertical coordinates of the mouse position related to the object of the trigger event

PropertyName

Retrieve the name of the characteristics of the object on the object

REAON

Retrieve data transmission results

Possible value:

0 Data transfer is successful

1 Data transmission failed

2 data transmission error

Recordset

Retrieve the reference to the default record set in the data source object

This feature is read-only

Repeat

Retrieving an event is repeated

This property only returns true when the onkeydown event is repeated.

ReturnValue

Set or retrieve the value returned from the event

Possible value:

The value in the TRUE event is returned.

The default operation of the FALSE source object is canceled

Screenx

Retrieve the horizontal position of the mouse related to the user screen

Screeny

Retrieve the vertical position of the mouse related to the user screen

ShiftKey

Retrieve the current state of the ShiftKey key

Possible value True is off

False is not closed

Srcelement

Search objects of triggering events

SRCFILTER

Retrieve filter object triggered by ONFILTERCHANGE event

Srcum

Search the same resource name of the trigger event behavior

This feature is set to null unless the following two conditions are true.

1. Behavior is attached to the elements of the trigger event

2. Behavior defined in the previous item symbols assign a URN identifier and a trigger event

TOELEMENT

Search for objects that move as an onMouseOver or onmouseout event

Type

Retrieve the event name in the event object

x

Retrieve an integer of coordinates with respect to parent factor mouse

y

Retrieve integers of vertical coordinates relative to parent factors mouse

5. How do I let the web automatically refresh?

In the HEAD department, the where 20 is automatically refreshed after 20 seconds, you can change to any value.

6. How to make a window forever?

Click here