Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound spyware trojan usb video virus vista windows windows vista windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
I need sound now :)


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
19-Jul-2005, 05:39 PM #1
I need sound now :)
How would I have a drop down menu to allow visitors (to my website) select a song to play, and then it actually plays? The music is mp3 music files. I am a noob, so please explain it to me like I am a 12 year old? Thank you so much

Pocket Angel

edited to include this:
PS- I'd like to use mediaplayer or quicktime, unless someone can tell me what is better and why

Last edited by pocketangel : 19-Jul-2005 05:43 PM. Reason: to add a sentence
IgneousPrime's Avatar
Senior Member with 410 posts.
 
Join Date: Aug 2002
19-Jul-2005, 10:13 PM #2
First off, this takes a lot out of you and your bandwidth. First off, tell us how much of a bandwidth limit that your host set. Second, tell us your connection speed. I guess we can start from there to see if you can do it.
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
20-Jul-2005, 12:28 PM #3
I hope this is what you are askingf for...
Bandwidth is:

Usage- 1,496.00KB
Limit- 1,000MB
Remaining- 0.98GB

I am connected with Roadrunner cable.

Thank you for the help

Pocket Angel

PS- Here is the site I am working on using only notepad http://angelsofdestiny.net
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
20-Jul-2005, 02:41 PM #4
i don't have the combobox part of it done quite yet, but this is the bulk of it. i can work more on this when i get home, unless someone fills in the combobox part first.

hth,

drew



<html>

<head>

<script type="text/javascript">
<!--
function PlayIt(thesong){
document.getElementById("music1").innerHTML='<object id="mediaPlayer" width="300" 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="'+thesong+'">'
+'<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/" '
+'showcontrols="true" width="300" height="45" '
+'src="'+thesong+'" autostart="true" loop="true">'
+'</embed>'
+'</object>'
}
//-->
</script>

</head>

<body>


Send me an angel <a href="path/to/file.mp3" onclick="PlayIt(this.href);return false">Play</a><br>
Angel (Aerosmith) <a href="path/to/file.mp3" onclick="PlayIt(this.href);return false">Play</a><br>

<br>
<br>

<span id="music1">
<object id="mediaPlayer" width="300" 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="false">
<param name="showControls" value="true">
<param name="loop" value="true">
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="true" width="300" height="45" src autostart="false" loop="true">
</object>
</span>


</body>

</html>
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
20-Jul-2005, 03:08 PM #5
ok, i'm having a slow day, here's the combox part. just replace everything between the <body> tag to just above the two <br> <br> and you're done!

i'm on a freaking roll today

drew

<form method="POST" action="../My%20Documents/My%20Webs/tests/--WEBBOT-SELF--">

<p><select size="1" name="D1">
<option selected>Select...</option>
<option value="path/to/song.mp3">Send me an angel</option>
<option value="path/to/song.mp3">Angel (Aerosmith)</option>
&nbsp;
</select></p>
<p><input type="submit" value="Play" name="B1" select onclick="PlayIt(D1.value);return false"></p>
</form>
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
20-Jul-2005, 04:35 PM #6
Oh I am so excited
I hope I can do this ...

Pocket Angel
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
20-Jul-2005, 05:11 PM #7
Absolute genius! You guys here are the best!

One more little challenge...how would I get that to open up in its own window?

Thank you for all your help.

Pocket Angel
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
20-Jul-2005, 06:27 PM #8
Oh no, another small (?) problem...but it looks great in my browser so far!
My host doesn't allow a file upload this large. (10.6 MB)
Any suggestions? Please keep in mind I am a total noob

Thanks again,

Pocket Angel
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
20-Jul-2005, 08:56 PM #9
Quote:
Originally Posted by pocketangel
...how would I get that to open up in its own window?
how would you get what (?) to open it it's own window? a link that said "Click here to play a song" (or something) or after you click "Play" open the song and the controls in a new window? it's all up to you from here...(like my song suggestions? )

drew
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
20-Jul-2005, 09:02 PM #10
...oh, and as far as the 10mb limit goes, you just need a smaller file or you can re-encode the one you have at a smaller bitrate (which equals a smaller file size). if you really need easy, just look for the song with a bitrate of 192 or less (i think that's cd-quality, not 'exactly' sure) anything larger than that is almost unrecognizable to the average ear (my opinion). what song?...not that i'd do...anything wrong or anything...just...wondering

drew
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
21-Jul-2005, 09:34 AM #11
When a visitor clicks on play, will they still be able to look at other pages on site, or will they stop the music by clicking on links to my other pages?

Okay, you lost me on the "bitrate" LOL...

You've been so helpful, I seriously do appreciate it.

The music is Gospel stuff. (But yeah, I loved your music suggestions, as I am not the "Gospel music" type "Aerosmith" rocks! Long live "Ozzy" Osbourne! Hail to the "Queen"!)

Oops, I'm showing my age here, excuse me

Pocket Angel
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
21-Jul-2005, 03:10 PM #12
if they want to hear a song i would popup a new window with the controls (the code above will now be it's own page, music.html, for this example, or something to your liking).

put this in your <head> tag:

<script type="text/javascript">
<!--
var win = null;
function NewWindow(wizpage, wizname, w, h, scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height=' + h + ',width=' + w + ',top= 100,' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
win = window.open(wizpage, wizname, settings)
}
//-->
</script>

and then this wherever you want it on your page:

<a href="path/to/music.html" onclick="NewWindow(this.href,'name','350','375','no');return false">Listen to music</a>

or you can do this with an image:

<a href="path/to/music.html" onclick="NewWindow(this.href,'name','350','375','no');return false"><img border="0" src="path/to/image.gif" width="32" height="32"></a>

you can chage the size of your window by changing the 350,375. for all the other tags, the standard attributes apply as well. I think you get the idea.

hth,

drew
__________________
Please help me as I am attempting to (re)gain my (in)sanity.
pocketangel's Avatar
Senior Member with 170 posts.
 
Join Date: Jul 2005
Experience: Beginner
21-Jul-2005, 03:53 PM #13
Thank you, you're the best!

Pocket Angel
drdrew1469's Avatar
Senior Member with 436 posts.
 
Join Date: Nov 2000
Location: PA
Experience: God
21-Jul-2005, 04:05 PM #14
glad i could help. if everything is good to go, would you please mark this thread as 'solved'.

thanks,

drew
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:57 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.