Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
hello with button and WMP
Old 02-03-2010, 07:12 AM hello with button and WMP
Junior Talker

Posts: 4
Name: Mansour
Trades: 0
hello,

I'm making a live broadcast website

For example :

On the center there is 10 button and in the buttom there's Windows Media Player


I want it like this:

if button1_click then play URL1
if button2_click then play URL2
if button3_click then play URL3
if button4_click then play URL4
...
..
.

This is the code to the button's

HTML Code:
<form action="alink.html"><input type="submit" value="Click Me1" /></form>
<form action="alink.html"><input type="submit" value="Click Me2" /></form>
<form action="alink.html"><input type="submit" value="Click Me3" /></form>
<form action="alink.html"><input type="submit" value="Click Me4" /></form>
<form action="alink.html"><input type="submit" value="Click Me5" /></form>
<form action="alink.html"><input type="submit" value="Click Me6" /></form>
<form action="alink.html"><input type="submit" value="Click Me7" /></form>
<form action="alink.html"><input type="submit" value="Click Me8" /></form>
<form action="alink.html"><input type="submit" value="Click Me9" /></form>
<form action="alink.html"><input type="submit" value="Click Me10" /></form>
And this is the code to WMP

HTML Code:
             <OBJECT ID="OBJECT12" 
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
VIEWASTEXT> 
                <PARAM name="autoStart" value="True"> 
                <param name="URL" value="http://174.36.196.135/~server4/ajm/32/001.mp3">  
                <PARAM name="rate" value="1"> 
                <PARAM name="balance" value="0"> 
                <PARAM name="enabled" value="true"> 
                <PARAM name="enabledContextMenu" value="true"> 
                <PARAM name="fullScreen" value="false"> 
                <PARAM name="playCount" value="1"> 
                <PARAM name="volume" value="100"> 
</OBJECT> 
king_888 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-03-2010, 07:17 AM Re: hello with button and WMP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And your question is?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-03-2010, 11:05 AM Re: hello with button and WMP
Junior Talker

Posts: 4
Name: Mansour
Trades: 0
my question is i want if someone click the buton1 then play url1
if someone click the buton2 then play url2
if someone click the buton3 then play url3
if someone click the buton4 then play url4

Etc
king_888 is offline
Reply With Quote
View Public Profile
 
Old 02-03-2010, 11:11 AM Re: hello with button and WMP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't do that because the end users settings may be to save the file or play it in a different application.

You could embed the player and change the src attribute using javascript.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to hello with button and WMP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35481 seconds with 12 queries