开发者

Why does appending an element onto a YouTube chromeless div cause it to flash with jQuery?

开发者 https://www.devze.com 2023-01-31 04:14 出处:网络
I\'m trying to append a <div> with some controls in it onto my chromeless youtube container with jQuery when a user hover\'s over the player, but it causes the player flash black and white.

I'm trying to append a <div> with some controls in it onto my chromeless youtube container with jQuery when a user hover's over the player, but it causes the player flash black and white.

$("#lol").appendTo("#ytplayerid");
开发者_运维技巧

I'm trying to go for a similar effect to this: http://demo.tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/youtube-player.html


Could be something to do with z-index. Perhaps set the z-index on the player element to 1000 and then set it lower on the div. Be sure to set position on the elements to apply the z-index.

0

精彩评论

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