It is mainly two-piece code, adding these two codes to your saved page file, join the method as follows:
1. Insert the following code before the head> tag
Function statusReport () {
Var Tempx = event.clientx document.body.scrollLeft;
Var Tempy = Event.Clienty Document.body.scrolltop;
Status = 'X, Y coordinate in the entire page: (' Tempx ',' Tempy '); X, Y coordinate in the current window: (' event.clientx ',' event.clienty ' ) ';
}
// ->
Script>
Examples of insertion are as follows:
......
Function statusReport () {
Var Tempx = event.clientx document.body.scrollLeft;
Var Tempy = Event.Clienty Document.body.scrolltop;
Status = 'X, Y coordinate in the entire page: (' Tempx ',' Tempy '); X, Y coordinate in the current window: (' event.clientx ',' event.clienty ' ) ';
}
// ->
Script>
HEAD>
......
2. Add the following code in the
tagοnmοusemοve = "statusReport ();"
The examples have been added are as follows:
......
HEAD>
>......
3. Save the file
After opening the modified page with the IE browser, move the mouse in the page, the x, y coordinate of the mouse is displayed in the status bar at the bottom of the IE browser, such as:
The x, y coordinate in the entire page: (578, 957); X, Y coordinate in the current window: (578, 492)
The first half is described in the entire page (the page may need to be scrolled up and down) of the X, Y coordinate;
The second half is described is the X, Y coordinate of the mouse in the current window.