okay Ihave this script I can't get it to work right but it off of something that does work. here are my questions. 1: is it cross browser? 2:what do I need to do if I wanted to add a quicktime player to it?
Code:function playSongs(){ var sel = document.forms.sell; document.getElementById('MTVplayer').innerHTML= is innerHTML cross browser?'<object width="250" height="59" id="Player" classid="CLSID:6BF52A52-394A-1 1d3-B153-00C04F79FAA6" type="application/x-oleobject"> <param name="URL" value="'+document.getElementById('sell').value+'"> <param name="autoStart" VALUE="true"> <param name="uiMode" value="full"> <param name="currentPosition" vaule="1" > <param name="ShowStatusBar" value="true" > <embed type="application/x-mplayer2" src="'+document.getElementById('sell') .value+'" ShowControls="0" width="250" height="50"></embed></object>'; do I need to add the quictime player here}
HTML Code:<div id="chooseshow"> <input type="button" value="Play" onclick="playSongs();finded()" /> <select name="sel1" size="4" multiple="multiple" id="misterio" onchange=""> <option value="Digimon Season 2 - Episode 19 - An Old Enemy Returns.wmv" >digimon</option> <option value="http://www.fileden.com/files/200 6/11/20/398972/02%20-%20TOOL%20-%2010000%20DAYS%20-%20JAMBI.mp3">tool-jumbie</option> <option value="http://www.fileden.com/files/2006/11/20/3 98972/Cradle%20Of%20Filth%20-Nymphetamin e.mp3">Cradle of Filth-Nymphetamine</option> <option value="http://www.fileden.com/fil es/2006/11/20/398972/Black%20Light%20Bu rns%20-%20Lie(1).mp3">Black Light Burns-Lie</option> </select> </div>If I add the quicktime player up there I need one her right. cause I have one in my real codeHTML Code:<div id="MTVplayer"> <object id="fileObj" width="300" height="450" classid="CLSID:22d6f312-b0f6-11d 0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/ac tivex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <param name="fileName" value="'window.retry'"> <param name="autoStart" value="true"> <param name="showControls" value="true"> <param name="loop" value="false"> <param name="uiMode" value="full"> <embed id="fileEmb" type="application/x-mplayer2" src="'window.retry'" ShowControls="1" width="235" height="160"> </embed> </object> </div>]



Reply With Quote
Bookmarks