2013-04-30 57 views
2

我想做一些看似簡單的事情 - 在我的頁面上嵌入YouTube播放器。不過,它打破了我的頁面上的FlexSliders。應該在頁面頂部有一個傳送帶,左下角有一個傳送帶。YouTube iFrame打破jQuery

請看:http://www.maplemountainchorus.org/mandy/index2.html

我只是失去了一些東西?

這是我使用的是什麼,我的YouTube:

<div id="youTube"> 
    <iframe id="ytplayer" type="text/html" width="400" height="360" src="https://www.youtube.com/embed/?listType=playlist&list=PLqJ3d9oC51bYbad5C_43lNPSJdUibM2J3&showinfo=1" frameborder="0" allowfullscreen /> 
</div> 

回答

3

的JS控制檯錯誤是

Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "http://www.maplemountainchorus.org". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match. 

嘗試在您的YouTube iframe標籤

您擺脫https://的也可以看看你的關閉iframe標籤。 Iframe標記不是單例標記,必須以</iframe>而非/>結尾。

+0

就是這樣 - 我從http://在iframe中的YouTube視頻引用中刪除了「s」,並將其修復!謝謝!! – user2325558 2013-04-30 23:00:17

+1

@ user2325558如果這個答案對你有幫助,記得點擊左邊的綠色複選標記來接受它。 – Doorknob 2013-05-01 02:34:58