开发者

How to simulate a fake MouseOver on a Flash applet in a webpage?

开发者 https://www.devze.com 2022-12-22 13:16 出处:网络
I listen to internet radio at http://player.play.it/player/player.htm and it works pret开发者_StackOverflow社区ty well, except for one minor issue.The Flash applet that runs the radio player has a tim

I listen to internet radio at http://player.play.it/player/player.htm and it works pret开发者_StackOverflow社区ty well, except for one minor issue. The Flash applet that runs the radio player has a timer on it, where if you don't move the mouse over the player every once in a while, it decides you're idle and shuts off the stream, even if you're not actually idle, but just working on something else with the radio player running in the background.

Is there any way I can send a fake MouseOver message to this applet to keep it from cutting me off in the middle of a song, maybe with a GreaseMonkey script? I'm using Firefox.


Looking at the HTML that is served up with the player....

<body bgcolor="#000000" onmouseout="windowActive();" onmouseover="windowActive();">

..It looks like windowActive() is being called a lot in different places on the page. You could try just calling it yourself, on a timer and see what happens.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号