recently ive done a bit of changes in my site i made for me and my friends but one of the problems i seem to have run into is the fact that the music player i use changes shape and the sound doesnt play which is just a big let down for my friends that use FF instead of IE. well, heres the code i use for my player aside from 2 of the song links since im kinda picky with who i let listen to those (and heres the link to the index to which the player is in on the side labeled "Music Player" http://saishuhaneandjah.4t.com/)
what im trying to do later on is build a browser sniffer so my FF friends can get a music player that they can listen to and my IE friends get the one that i originally put up.Code:<html> <head> <title>Shu's Musical Fix</title> </head> <body background="http://saishuhaneandjah.4t.com/forum/lightbluecloudsmusicplayer.jpg"> <object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"> <param NAME VALUE> <param NAME="ShowControls" VALUE="0"> <param NAME="ShowStatusBar" VALUE="0"> <param NAME="ShowDisplay" VALUE="0"> <param NAME="DefaultFrame" VALUE="Slide"> <param NAME="Autostart" VALUE="1"> <param NAME="Loop" VALUE="True"> </object> </p> <form name="form"> <p style="text-align: center"> <select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 160; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1"> <option value="0">Days</option> <option value="1">A la faveur de l'automne</option> <option value="2">Cats on Mars</option> <option value="3">Waltz for Venus</option> <option value="4">After Love</option> <option value="5">Bonnie and Clide</option> <option value="6">Love Mode</option> <option value="7">Fill This Night</option> <option value="8">Jin's Song</option> <option value="9">Lonely Roling Star</option> <option value="10">Bon Bon Bereppa</option> <option value="11">San Francisco</option> </select><br> <input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);"> <input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause(); playstate=2;"> <input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop(); playstate=2;"></p> </form> <script language="JavaScript"> <!-- var playstate = 1; shuffle = 1; // set to 0 to always play first song in list // set to 1 to randomly choose the first song to play // unlimited songs, just copy and paste the song line and change the number songs=new Array(); songs[0]="http://saishuhaneandjah.4t.com/Music/Eureka%20Seven%20-%20Days.wma" songs[1]="http://saishuhaneandjah.4t.com/Music/Tt%20-%20A%20la%20faveur%20de%20l%27automne.wma" songs[2]="http://saishuhaneandjah.4t.com/Music/Cats%20On%20Mars%20.wma" songs[3]="http://saishuhaneandjah.4t.com/Music/Waltz%20for%20Venus.wma" songs[4]="http://saishuhaneandjah.4t.com/Music/Clazziquai%20-%2004.After%20Love.wma" songs[5]="" songs[6]="http://saishuhaneandjah.4t.com/Music/Clazziquai%20Feat.%20Tablo%20-%20Love%20Mode.wma" songs[7]="http://saishuhaneandjah.4t.com/Music/Clazziquai%20-%20Fill%20This%20Night.wma" songs[8]="" songs[9]="http://saishuhaneandjah.4t.com/Music/Lonely%20Rolling%20Star.wma" songs[10]="http://saishuhaneandjah.4t.com/Music/Honey%20and%20Clover%20-%20Bon%20Bon%20Bereppa%20%28Shinobu%27s%20theme%29.wma" songs[11]="http://saishuhaneandjah.4t.com/Music/Samurai%20Champloo%20-%20San%20Francisco.wma" if (shuffle == 1) { var randsg = Math.floor(Math.random()*songs.length); document.darkplayer.FileName = songs[randsg]; document.darkplayer.scr = songs[randsg]; document.forms['form'].playlist.options[randsg].selected = true; } function play(list) { if (playstate == 2) { document.darkplayer.Play(); } else { var snum = list.options[list.selectedIndex].value document.darkplayer.FileName = songs[snum]; document.darkplayer.scr = songs[snum]; } playstate = 1; } //--> </script> <center> <a href="http://z10.invisionfree.com/Jahs_vision_of_Love/index.php?showtopic=389" target="_blank"><font color="#FFFF66">Official Downloady Thread</font></a> </center> </body> </html><script><!-- function SiteStats_5007(){ var t=new Date(); var u='http://saishuhaneandjah.4t.com/cgi-bin/sitestats.gif?p='+escape(location.href)+';r='+escape(document.referrer)+';t='+t.getTime(); var I=new Image(1,1); I.src=u; } SiteStats_5007(); //--></script><noscript><img src=http://saishuhaneandjah.4t.com/cgi-bin/sitestats.gif?p=http%3A%2F%2Fsaishuhaneandjah.4t.com%2FMusicPlayer.htm;r=http%3A%2F%2Fsaishuhaneandjah.4t.com%2F;t=5007; width=1 height=1></noscript>
is there even such a thing that FF uses thats similar to the player i use now? if not, is there any alternative anyone can suggest?



Reply With Quote

Bookmarks