12 Jun
2006
12 Jun
'06
9:55 a.m.
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