简体   繁体   中英

Is it possible to use a jQuery hook on an HTML element to trigger a click on a flash element?

In reference to these topics:

Simulate click at x/y coordinates using javascript

How to simulate a click by using x,y coordinates in JavaScript?

Is it possible to use those methods described above to have an HTML hook kick off jQuery/javascript that can click x,y coordinates on a flash element automatically? And if so, how do I retrieve the x,y coordinates for the button on the flash element I'm trying to auto click (it's wrapped in a div).

What I'm trying to do is make my own full screen button that will trigger the flash player to go into full screen mode. The flash player doesn't have any hot key or other way to initiate full screen - the only way is to click the full screen button.

This was the only method I came up with that I thought might work for the above scenario, however if anyone has any other ideas as to how this could work please feel free to contribute, thank you!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM