Great Karl!!! I was just having problem with flowplayer (a flash flv player which get played movie path from a flashvar) I think that this new implementation will help! Great work! New video module with XHTML valid code to be released soon. Fabio Karl Rudd wrote:
I just spent the last few hours fixing my "fix" for the "Click to activate..." thing with IE.
It turns out that the "flashvars" parameter, and many others, don't survive the "rewrite" in the current fix.
Here's the new code:
var objects = document.getElementsByTagName( 'object' ); for ( var i = 0; i < objects.length; i++ ) { var obj = objects[ i ]; var clone = obj .cloneNode( true ); var parent = obj .parentNode; var sibling = obj .nextSibling; parent.removeChild( obj ); parent.insertBefore( clone, sibling ); clone.outerHTML = clone.outerHTML; }
Not as "clean" as before but then again it's a fix for IE, so it's almost to be expected.
Karl