| |

VerySource

 Forgot password?
 Register
Search
View: 858|Reply: 5

Mouse click event. . . .

[Copy link]

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-11-26 15:00:01
| Show all posts |Read mode
On a page, when you click on a certain position with the mouse, it will jump to the next page. There are two text boxes on the next page, one is the X coordinate and the other is the Y coordinate. When the mouse clicks, it jumps to the next page, the next The text box on the page gets the X and Y coordinates of the hit position! ! ! ! ! ! ! ! ! !
Reply

Use magic Report

0

Threads

13

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-11-26 19:30:01
| Show all posts
The first page gets the coordinate value, and then passes it to the second page
Reply

Use magic Report

1

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2020-11-26 22:00:01
| Show all posts
I just forgot to use what mouse to get his X and Y coordinates on the first page! ! ! ! ! ! !
Reply

Use magic Report

0

Threads

15

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-11-27 07:45:01
| Show all posts
Mouse position
event.x
event.y
Reply

Use magic Report

0

Threads

15

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 Japan

Post time: 2020-11-27 10:15:01
| Show all posts
oRect = obj.getBoundingClientRect();
oRect.left
oRect.
Reply

Use magic Report

0

Threads

15

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 Japan

Post time: 2020-11-27 10:30:01
| Show all posts
var t=e.offsetTop;
var l=e.offsetLeft;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list