How do I attach a jQuery event handler to a YouTube movie?

前端 未结 4 1715
走了就别回头了
走了就别回头了 2020-12-30 17:16

[EDIT: Sorry to those who already answered -- in my sleep-deprived state, I forgot that this particular situation is a YouTube movie, not the JW FLV player. I can see th

4条回答
  •  星月不相逢
    2020-12-30 17:57

    Flash movies are pretty much black boxes as far as javascript is concerned. If the SWF you're using wasn't written to interact with javascript then you're probably out of luck.

    You'll either need to figure out what javascript methods the movie you're using exposes (hopefully it has documentation), find another one that does provide javascript interaction, or write your own SWF to handle it.

提交回复
热议问题