Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

need help with my playlist on my site

May 31, 2007 6:54AM PDT

I have a web site I designed myself I dont have much knowledge with programing I found a script to have my guest listen to music but the play list is not coded to play the list you have to select each song to play when 1 song is finished the next 1 doesnt play it just stops my hosting system is linux and the player is windows media player im also looking for codes to put on my site to host music and video free is preferred thanks.

Discussion is locked

- Collapse -
I'm not sure what you are trying to achieve.
Jun 1, 2007 9:48PM PDT

Are you saying you want visitors to your site to hear the whole playlist?

Personally I avoid such sites. It annoys me when I visit a site and I am forced to listen to music I don't want to listen to whilst I am exploring the site.

Also, the visitor would have to download all the music. On a dial-up connection, (and some of the slower broadband ones), this would take up valuable bandwidth. Another reason why I would avoid such sites.

Mark

- Collapse -
what Im trying to acheive
Jun 12, 2007 3:25AM PDT

The playlist that I want to put is not background music. My visitors choose the type of music and then select a playlist and the controls are there so they can controll it. If you still dont understand you can check my site for a better idea www.roaringlionent.com

and this is the code I am currently using :


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>The very best of UB40 I</title>
<style type="text/css">
<!--
body {
text-align:center;
background-color:red;
}
form {
margin:0;
padding:0;
}
-->
</style>
<script type="text/javascript">
<!--
function PlayIt(){
document.getElementById("music1").innerHTML='<object id="mediaPlayer" width="270" height="45" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'codebase="http://activex.microsoft.com/activex/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="'+document.getElementById('cancion').value+'">'
+'<param name="animationatStart" value="true">'
+'<param name="transparentatStart" value="true">'
+'<param name="autoStart" value="true">'
+'<param name="showControls" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'bgcolor="101010" showcontrols="true" width="270" height="45" '
+'src="'+document.getElementById('cancion').value+'" autostart="true" designtimesp="5311" loop="true">'
+'<\/embed>'
+'<\/object>'
}
//-->
</script>
</head>
<body onload="document.forms['player'].reset()">
<form name="player" action="select" method="">
<select name="List" style="background-color:#101010; color:#aa0000" id="cancion" onchange="PlayIt()" size="1">
<option value="#">        ::::::::::::: The Very Best of UB40 1980-2000 [US]:::::::::::::</option>


<option value="#">         ::::::::::::: Choose Your Music :::::::::::::</option>


<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/01 I Got You Babe.wma">I Got You Babe</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/02 Here I Am (Come and Take Me).wma">Here I Am (Come and Take Me)</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/03 Bring Me Your Cup [7 Version].wma">Bring Me Your Cup [7 Version]</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/04 One in Ten.wma">One in Ten</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/05 Red, Red Wine.wma">Red, Red Wine</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/06 Kingston Town.wma">Kingston Town</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/07 If It Happens Again.wma">If It Happens Again</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/08 Don't Break My Heart.wma">Don't Break My Heart</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/09 Cherry Oh Baby.wma">Cherry Oh Baby</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/10 Can't Help Falling in Love.wma">Can't Help Falling in Love</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/11 Higher Ground.wma">Higher Ground</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/12 Tell Me Is It True.wma">Tell Me Is It True</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/13 Rat in Mi Kitchen.wma">Rat in Mi Kitchen</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/14 Until My Dying Day.wma">Until My Dying Day</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/15 The Way You Do the Things You Do.wma">The Way You Do the Things You Do</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/16 Light My Fire.wma">Light My Fire</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/17 Food for Thought.wma">Food for Thought</option>

<option value="http://www.roaringlionent.com/music/The Very Best of UB40 1980-2000 [US]/18 Sing Our Own Song.wma">Sing Our Own Song</option>


</select>
</form>
<span id="music1">
<object id="mediaPlayer" width="270" height="45"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/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="">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
bgcolor="black" showcontrols="true" width="270" height="45"
src="" autostart="true" designtimesp="5311" loop="true">
</object>
</span>


<script type="text/javascript">
function highl() {
var x = document.getElementById('mytext').innerHTML;
var highlight = "<span style='background: red;'>"+x+"</span>";
document.getElementById('mytext').innerHTML = highlight;
}
</script>
</head>
<body>
<div id="mytext" onclick="highl();">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<a href="reggae music.htm" target=logo>click here to get back other cd's</a><br><br>


</html>


thanks for the responce hope you can help