Log In · Register

 
Music drop-down menu script, ...?
deadroses89
post Jul 29 2004, 09:25 PM
Post #1


bio-degratable hands
****

Group: Member
Posts: 132
Joined: Jul 2004
Member No: 33,587



I have seen this code in the scripts area before, but its gone now wacko.gif . Well it was for a drop-down menu to select the song you want to play. If anyone knows it, please help, thanks so much!
 
 
Start new topic
Replies
sweetxsimplicity
post Jul 29 2004, 09:35 PM
Post #2


hi, my name is brianna! =]
*******

Group: Official Member
Posts: 5,764
Joined: Jun 2004
Member No: 22,114



It's there:

http://www.createblog.com/forums/index.php?showtopic=6483

---------------------------------------

Description:
With this code, you can allow your users to select a song through links.

Example:
Click here for a working example


Copy and paste wherever you want your playlist to appear (in custom header if you want it on top, or in the website stats if you want it in the bottom of your xanga).

CODEBOX: -> right click -> copy/paste
CODE
<!-- begin code provided by createblog.com -->

<script>
function PlaySong(name)
{
 var text =
 "<embed src = \"" + name + "\" type = \"audio/x-bmx\" " +
 "backcolor = \"200, 200, 200\" " +
 "scrollspeed = 0 " +
 "infocolor = \"0, 140, 200\" " +
 "width = 0 height = 0" +
 ">";
 if (document.all)
 {
   // Internet explorer
   document.all.Plugin.innerHTML = text;
 }
 else
 {
   // Netscape
   document.Plugin.document.write(text);
   document.Plugin.document.close();
 }
}
</script>
<div ID = "Plugin"></div>
<div ID = "PlayList">
Choose your song:
<a href = "javascript:PlaySong('http://SONG URL 1')" title="Song title - Artist">1</a>
<a href = "javascript:PlaySong('http://SONG URL 2')" title="Song title - Artist">2</a>
<a href = "javascript:PlaySong('http://SONG URL 3')" title="Song title - Artist">3</a>
<a href = "javascript:PlaySong('http://SONG URL 4')" title="Song title - Artist">4</a>
| <a href = "javascript:PlaySong('#')" title="Mute Music">OFF</a>
</div>
<!-- end code provided by createblog.com -->



You can add more links by adding more of the following:

CODEBOX: -> right click -> copy/paste
CODE
<!-- begin code provided by createblog.com -->
<a href = "javascript:PlaySong('http://SONG URL')" title="Song title - Artist">Song #</a>
<!-- end code provided by createblog.com -->




If you're good, you can edit the code where appropriate to format the appearance of your playlist.

If you want a certain song to start playing automatically, use this code:

CODEBOX: -> right click -> copy/paste
CODE
<!-- begin code provided by createblog.com -->
<embed src="http://SONG URL" hidden=true autostart=true>
<noembed>
<bgsound src="http://SONG URL">
</noembed>
<!-- end code provided by createblog.com -->


You can find a lot of music (that should work with this code) from Xanga_Music

-- xquizit
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: