HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
HTML tag to play mp3 songs
Goto page Previous  1, 2
Post new topic   Reply to topic    HTML Help Forum -> HTML Form
View previous topic :: View next topic  
Author Message
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4287
Location: MS

PostPosted: Wed Sep 02, 2009 10:03 am     Reply with quote

Sorry. The latest version of Firefox is a big mess to begin with. Too many problems with it and it breaks every one of my needed add-ons. It doesn't allow a separate install so can't run both versions.
Mori



Joined: 20 Jul 2009
Posts: 21

PostPosted: Wed Sep 02, 2009 10:15 am     Reply with quote

Thanks anyway. You're so helpful! Smile
Please let me know the result anytime you get to try it in the latest version. I'd be grateful...
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4287
Location: MS

PostPosted: Wed Sep 02, 2009 11:06 am     Reply with quote

You're welcome. Sorry I couldn't try it in latest version. Would use it, but their installer just refuses to leave my 2.0.0.20 Profile alone. Would love to be able to run both.

I take it you don't get any error codes when FF crashes?


Last edited by PayneLess Designs on Wed Dec 23, 2009 11:17 am; edited 1 time in total
Mori



Joined: 20 Jul 2009
Posts: 21

PostPosted: Wed Sep 02, 2009 11:50 am     Reply with quote

I run Firefox >> navigate to the web page displaying your player >> Firefox disappears and asks me to report the crash. That's all!
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4287
Location: MS

PostPosted: Wed Sep 02, 2009 1:09 pm     Reply with quote

OK. But the reporting sends the details to Mozilla. Guess they'll deal with the crash report details. There is suppose to be a button on the report box to look at the details before sending unless you have it to automatically send reports.
wakingoogah



Joined: 23 Dec 2009
Posts: 1

PostPosted: Wed Dec 23, 2009 10:30 am     Reply with quote

How can we get some music code that uses an url like from lala.com : http://lala.com/zR42 so i don't have to upload so much stuff?
aikzhobi



Joined: 14 Mar 2010
Posts: 2

PostPosted: Sun Mar 14, 2010 11:03 pm     Reply with quote

I pasted this code in my html page. but when i select a song media player became hide...
why its same ?
aikzhobi



Joined: 14 Mar 2010
Posts: 2

PostPosted: Sun Mar 14, 2010 11:06 pm     Reply with quote

I pasted this code on my html page. But when i select a song media player became hide..
why its same ?


PayneLess Designs wrote:
Try this:

<!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>Untitled Document</title>
<style type="text/css">
<!--
body {
text-align:center;
}
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="false">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'bgcolor="101010" showcontrols="false" 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="" method="">
<select name="" id="cancion" onchange="PlayIt()" size="1">
<option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
<option value="http://urltosong1.mp3">Song 1</option>
<option value="http://urltosong2.mp3">Song 2</option>
<option value="http://urltosong3.mp3">Song 3</option>
<option value="http://urltosong4.mp3">Song 4</option>
<option value="http://urltosong5.mp3">Song 5</option>
<option value="http://urltosong6.mp3">Song 6</option>
<option value="http://urltosong7.mp3">Song 7</option>
<option value="http://urltosong8.mp3">Song 8</option>
<option value="http://urltosong9.mp3">Song 9</option>
<option value="http://urltosong10.mp3">Song 10</option>
</select>
</form>
<span id="music1">
<object type="application/x-mplayer2" width="300" height="45" data="">
<param name="src" value="">
<param name="filename" value="">
<param name="type" value="application/x-mplayer2">
Your system does cannot find the windows media player that was specified.
</object>
</span>
</body>
</html>

Ron
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4287
Location: MS

PostPosted: Mon Mar 15, 2010 4:26 pm     Reply with quote

All these (http://urltosong1.mp3) are fake paths. You have to load playlist with real paths to mp3s.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> HTML Form All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial