jquery hide a div that contains flash without resetting it

后端 未结 3 1427
有刺的猬
有刺的猬 2021-01-03 05:59

Greetings, I have written a modal using jquery UI and it appears at the front of a flash movie thus the html inside the modal becomes corrupt, I tried to hide the movie righ

3条回答
  •  走了就别回头了
    2021-01-03 06:27

    Working solution:

    Use $('#myvideo').css('visibility', 'hidden') to hide and
    $('#myvideo').css('visibility', 'visible') to show the div containing the video.

    Just tested it with firebug.

    EDIT: Please note, this is different from .hide() and .show(), as they use the display css, instead of visibility.

提交回复
热议问题