views:

154

answers:

2

I have a flv file inside the vid.html which is working fine, but is there any way to have the video itself to fadeIn/fadeOut?

<div id="fadeit">
    <div class="video"></div>
</div>

this does not work;

$('.video').hide().fadeIn().load('vid.html');

wrapping it in a div and fading the div does not work either;

$('#fadeit').hide().fadeIn(1400);
+1  A: 

You cannot style flash stuff. You even cannot put eg a menu above a flash object.

(One of the reasons why flash must die)

Marian
Sort of true. You can add padding, margins, borders and even backgrounds to `embed` or `object` tags. But dynamic opacity is not something flash will let you do via javascript or CSS. Unless the actionscript in the flash `swf` specifically supports setting the alpha from javascript.
Squeegy
+2  A: 

no wmode or wmode transparent: FF, Chrome and Safari

wmode opaque, FF, Chrome, Safari and IE8 (only have ie8 to test)

Both fade flash and div overlay.

http://jsfiddle.net/WWvmz/2/

Dan Heberden
thank you for you time.