Hello, The following script should display a flash video within a player that I've installed on my server, but when I browse to the page the video is not displayed. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>About 2</title> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://www.bslhomework.org.uk/src/adapter/shadowbox-base.js"></script> <script type="text/javascript" src="http://www.bslhomework.org.uk/src/shadowbox.js"></script> <script type="text/javascript"> Shadowbox.loadSkin('classic', 'src/skin'); Shadowbox.loadLanguage('en', 'src/lang'); Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], 'src/player'); window.onload = function(){ Shadowbox.init(); /** * Note: The following function call is not necessary in your own project. * It is only used here to set up the demonstrations on this page. */ /** initDemos(); */ }; </script> <style> #about { border: solid silver 1px; width: 300px; height:200px; } </style> </head> <body> <table cellpadding = "5" cellspacing = "5"> <tr> <td> <div id="about"> <script type='text/javascript' src='js/swfobject.js'></script> <script type='text/javascript'> var s1 = new SWFObject('player.swf','player','300','200','9'); s1.addParam('allowfullscreen','true'); s1.addParam('allowscriptaccess','always'); s1.addParam('flashvars','/site_videos/BSLhomeworkclip39.flv&autostart=false'); s1.write('about'); </script> </div> </td> </tr> </table> </body> [/HTML] Any help with this would be greatly appreciated! Regards.
What is that [/HTML] tag at the end? Without a link to a site I can not check for errors. Besides that your swfobject version is 1.5 ... check for latest version (2.2) here : http://code.google.com/p/swfobject/
The [/HTML] tag is just from this forum for tagging code, nothing to do with my actual script. The URL is http://www.bslhomework.org.uk/test.html Thanks.
let me have a look... The shadowbox_container div is under the table ... how is the shadowbox initialized? Where is the "popup"? Besides of that : http://validator.w3.org/check?uri=h...(detect+automatically)&doctype=Inline&group=0 If you use XHTML 1.0 Strict doctype then you need to code your xhtml correctly Did the movie ever play (not in shadowbox)?
I've tried putting the shadow_container div above the table, but it still doesn't work. The shadowbox is initialized at the top using the shadowbox.js script. I've never tried to play the movie without the shadowbox, how would I do that?
I know how to code valid xhtml, no worries. Did that movie ever play on a normal page with no shadowbox n lightbox stuff? If not you should check your swf player stuff
Just Shadowbox.init(); will never work. How should the script know which file to play, format and everything else? You should check here how to use shadowbox: http://www.shadowbox-js.com/usage.html