I've solved this on other browsers by adding wmode: opaque
and using swfobject
to stay on the modern side of the web.
Safari still renders it on top of everything. Why?
<script type="text/javascript">
var url = 'http://www.youtube.com/v/blablabla',
atts = {
id: "ytplayer"
},
params = {
allowScriptAccess: "always",
wmode: 'opaque',
rel: 0,
enablejsapi: 1
};
swfobject.embedSWF(url, atts.id, "640", "390", "9.0.0", null, null, params, atts);
</script>
<div class="youTube">
<div id="ytplayer"></div>
</div>
Note that I have looked at related YouTube Video Embedded via iframe Ignoring z-index?; but this question is Firefox-specific, and I have actually tried the accepted answer to that question with no luck.