I decided to have the player written out.
in the body
HTML Code:
<OBJECT id='mediaPlayer' width="320" height="240"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='this will take some time<img src='misterioloder'' type='application/x-oleobject'>
<param name='fileName' value="">
<param name='animationatStart' value='1'>
<param name='transparentatStart' value='1'>
<param name='autoStart' value='1'>
<param name='ShowControls' value='1'>
<param name='ShowStatusBar' value='0'>
<param name='loop' value='0'>
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'
id='mediaPlayer2' name='mediaPlayer' displaysize='4' autosize='0'
bgcolor='darkblue' showcontrols='true' showtracker='true'
showdisplay='0' showstatusbar='0' videoborder3d='0' width="320" height="240"
src='' autostart='1' designtimesp='5311' loop='0'>
</EMBED>
</OBJECT>
<a id="thebiglink" href="http://www.knallgrau.at/code/plugin_js/demo/video-embeding/files/skifoan.wmv" onclick="return false">clickhere</a>
but I'm trying to load the file from a link into the embed src.
I can't load the link to the objects param because I can't use createElement("param")
Code:
document.getElementById("mediaPlayer2").setAttribute("src", document.getElementById("thebiglink").getAttribute("href"));
I thougth about loading the files from an array. But I need to have the links connected to the right files in the array and I don't know how to do that.
Bookmarks