Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Sponsored Reviews   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 04-21-2004, 11:55 AM   #1 (permalink)
Inactive
 
Join Date: 10-17-03
Posts: 146
iTrader: 0 / 0%
Latest Blog:
Back online!

CrAg is liked by somebodyCrAg is liked by somebodyCrAg is liked by somebodyCrAg is liked by somebodyCrAg is liked by somebody
Send a message via ICQ to CrAg
PLEASE Help with Java Script !!!

Hello guys!
How are ya’ll doing?
I need some help on JavaScript.
I want to place a Widows Media player on my web site. Also I have a drop down menu with the songs people can listen to. What I need is when you select something from drop down menu it’s value is automatically added to players value so it plays the selected song.

I’ve got the following javascript:
[code:1:4fc3a405be]
<script>

function Init(){
MP=document.WinMedia;
MP.Stop();
}
function DrawList(){
eval(Playlist.document.body.innerHTML);
channels=channels.split(",");
if(channels.length>0){
Tmp="<select name="channel" onChange="MStop();" id="M" style="width:115px;">";
for(i=0;i<channels.length;i++){
Tmp+="<option value=""+i+"">"+channels[i]+"</option>";
}
Tmp+="</select>";
}
else Tmp="<b>loaded</b>";
document.getElementById("List").innerHTML=Tmp;
}
function MPlay(){
MP.filename="VALUE OF A SELECTION HERE"+document.getElementById("channel").value; <-- VALUE HERE.
MP.Play();
}
function MStop(){
MP.Stop();
}
</script>
[/code:1:4fc3a405be]
I also have this drop down menu:
[code:1:4fc3a405be]
<select size="1" name="channel">
<option value =" http://mysong.mp3">MySong</option>
<option value ="http://mysong1.mp3">MySong1</option>
<option value =" http://mysong2.mp3">MySong2</option>
<option value =" http://mysong3.mp3" selected>MySong3</option>
</select>
[/code:1:4fc3a405be]
The question is, how do I make the value of selection to be added to JS?
Here you can see the player, drop down menu, play & stop buttons, player.
http://internet.cv.ua/chat/radio.php

Thanks for your help.
I appreciate it really much.
CrAg is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-21-2004, 02:22 PM   #2 (permalink)
Inactive
 
Join Date: 10-17-03
Posts: 146
iTrader: 0 / 0%
Latest Blog:
Back online!

CrAg is liked by somebodyCrAg is liked by somebodyCrAg is liked by somebodyCrAg is liked by somebodyCrAg is liked by somebody
Send a message via ICQ to CrAg
Thanks to everybody. I already figured that out.
CrAg is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
images off? Java Script off? Flash off? Kymberly Web Usability 19 07-22-2008 11:57 AM
Out of proportion photos with java script Blackburd Coding Forum 0 02-15-2008 11:46 AM
java script vs css navigation bars tdd1984 SEO Forum 5 01-26-2007 01:19 PM
the simplest java script question EVER! wulf2001 Coding Forum 0 07-16-2006 06:00 AM
Java Script to run Java Script pippyboy Coding Forum 1 06-13-2004 11:31 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:48 AM.
© Copyright 2008 V7 Inc