View Full Version : document write with wmp and quicktime

05-15-2007, 06:09 PM
I managed to get a quick time and windows media player detection script working

but if you have the player
if(player ==true){fixcode()}

I have a code to write out quicktime.

function fixcode (){ document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"

codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="320" height="256">');
document.write('<param name="src"
value="http://www.knallgrau.at/code/plugin_js/demo/video-embeding/files/skifoan.mov" />');
document.write('<param name="autoplay" value="true" />');
document.write('<param name="controller" value="true" />');
src="http://www.knallgrau.at/code/plugin_js/demo/video-embeding/files/skifoan.mov" width="320" height="256" type="video/quicktime"
pluginspage="http://www.apple.com/quicktime/download/" autoplay="false" controller="true" />');
the problem is when I just write it out normaly it works and you can see the movie. But when I use document write it dosen't play but there are no errors.
I searched many sites but I don't see a clear explainion for why this won't work.

I even tried making an object and using createElement. Still no luck.

05-15-2007, 07:18 PM
if using document.write to embed objects don't work any more. when did this change