Log In · Register

 
 
Closed TopicStart new topic
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!
 
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
 
deadroses89
post Jul 29 2004, 10:00 PM
Post #3


bio-degratable hands
****

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



QUOTE(sweetxsimplicity @ Jul 29 2004, 9:35 PM)
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

Thanks, happy.gif this will do if I can't find the other one, its not the same code though, the one I am looking for is a drop down menu where you select the song you want by clicking the name. If anyone knows the one I am talking about, please post it in here!
 
sweetxsimplicity
post Jul 29 2004, 10:03 PM
Post #4


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

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



That is the drop-down menu where you select the song by clicking its name..
 
deadroses89
post Jul 29 2004, 10:07 PM
Post #5


bio-degratable hands
****

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



QUOTE(sweetxsimplicity @ Jul 29 2004, 10:03 PM)
That is the drop-down menu where you select the song by clicking its name..

look at the bottom of my xanga, it just says "Choose your song: 1234 | OFF" and when you highlight "1" it tells you what song it is, but I have had one before where it was a drop-down menu, but then again, I had put it into custom header so it would beat the top then... Does that mean that it only is the drop-down menu when its placed at the top of your page? wacko.gif

EDIT// ok I changed it to be in my custom header, but still it says "Choose your song: 1234 | OFF" only now its at the top! *sigh* Am I doing something wrong?
 
LatinaLady
post Jul 29 2004, 10:14 PM
Post #6


Look its...
*******

Group: Official Member
Posts: 5,817
Joined: Feb 2004
Member No: 4,767



i have it

changeit to be for you its the sameone i have in my site so yeah
CODEBOX: -> right click -> copy/paste
 
swtaznpride
post Jul 29 2004, 10:18 PM
Post #7


Senior Member
*****

Group: Member
Posts: 491
Joined: May 2004
Member No: 18,689



i know this is not t a rite topic but how did u put your chatterbox like that is there a code or is it part of the layout code?
 
deadroses89
post Jul 29 2004, 10:24 PM
Post #8


bio-degratable hands
****

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



QUOTE(LatinaLady96 @ Jul 29 2004, 10:14 PM)
i have it

changeit to be for you its the sameone i have in my site so yeah
CODEBOX: -> right click -> copy/paste

thats the one I was looking for! Thanks biggrin.gif
 

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