Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-23-2003, 09:00 AM   PM User | #1
pvz
New Coder

 
Join Date: Oct 2003
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
pvz is an unknown quantity at this point
How to let a textlink determine the src of an embedded media-file?

Below is an example I found on how to embed a windows media player. My question is: How can I select which file should be played, by clicking a text link (which should be located in a different frame)? Very thankful for any help! /Per, Sweden


Current code:

<object id="MediaPlayer" width="600" height="480" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject">
<param name="FileName" value="media.wmv">
<param name="autostart" value="1">
<param name="showcontrols" value="0">
<embed type="application/x-mplayer2"
src="media.wmv"
width="600"
height="480"
autostart="1"
showcontrols="1">
</embed>
</object>

Last edited by pvz; 10-23-2003 at 11:50 AM..
pvz is offline   Reply With Quote
Old 10-23-2003, 04:02 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
That sounds like a JukeBox application. You can Google on "Javascript Jukebox" to bring up literally thousands of pages with example code and even tutorials. Often the trick to finding what you want is simply knowing the right keywords to use in your hunt.

Go ahead and take a look and if that doesn't help you meet your goal or you find a script that looks likely but have questions about it we'll be here for you.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:04 AM.


Advertisement
Log in to turn off these ads.