|
Reid
|
Jan 25 2010, 08:34 AM
Post #1
|
È una trappola!
- Posts:
- 6,767
- Group:
- Developer
- Member
- #223,645
- Joined:
- October 30, 2006
- I'm Browsing With
- Firefox
|
This topic has been moved from our official support board.
Originally posted by: siris_good - Juke Box
-
Code Name: Juke Box Description: link to play music Preview of it in Use: hereWhere it goes: under <%Board Header%> - Code:
-
<script> if (location.href.indexOf("act=Juke Box") != -1) { document.write('<div style="display:none">') } </script>
<script> /* Adding NaviBar Links By Webworldx */ var aLink=new Array() aLink[0]='<img src="http://img.photobucket.com/albums/v69/siris_good/jb.bmp" border="0" alt="" width="15" height="15" /> <a href="http://www.angelfire.com/ult/siris_good/jukebox.html">Juke Box</a>'
var uCell = document.getElementsByTagName('TD') for (i=0;i<uCell.length;i++){ if (uCell[i].align=="right" && uCell[i].innerHTML.match("act=calendar") && uCell[i].innerHTML.match("act=Help")){ var addLink="" for (j=0;j<aLink.length;j++){ addLink+=aLink[j]+" " }
uCell[i].innerHTML=addLink+uCell[i].innerHTML }} </script>
Also this is the basis for the playlist which you can use when making your own playlist. Remember to save playlist in notepad as JukeBox.html in a hosting site like Angelfire. - Code:
-
<title>The Juke Box</title>
<body> <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> <form name="form"> <p style="text-align: center"> <select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 250px; COLOR: #000000; font-face: verdana" name="playlist" size="1"> <option value="0">Place Song Title Here</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 songs=new Array(); songs[0]="Place Link Here";
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>
Now the link above shows the one I made with music I got that may change once and while, but may be used if desired and if not desired just make your own music playlist and change the link. Thank You
|