Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts

    document write with wmp and quicktime

    I managed to get a quick time and windows media player detection script working

    but if you have the player
    Code:
    if(player ==true){fixcode()}
    I have a code to write out quicktime.

    Code:
    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" />');
    document.write('<embed 
    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" />');
    document.write('</object>')}
    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.

  • #2
    Regular Coder riptide's Avatar
    Join Date
    Jan 2007
    Posts
    143
    Thanks
    1
    Thanked 0 Times in 0 Posts
    if using document.write to embed objects don't work any more. when did this change


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •