This is a discussion on "change the 'src' value using javascript" within the JavaScript Forum section. This forum, and the thread "change the 'src' value using javascript are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
change the 'src' value using javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
change the 'src' value using javascript
hello
i want to know if there is any way to change the src value in the embed code using javasript. i want to embed a media player to stream mms urls and for this i want to use some buttons links to change the channel on the media player.is there a way to use javasript in the src value or i have to load eatch time a different page for each channel? |
|
|
|
#2
|
||||
|
||||
|
Re: change the 'src' value using javascript
Post your code so far.
You can do this pretty easily if you set an ID for the embed tag.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#3
|
|||
|
|||
|
Re: change the 'src' value using javascript
Quote:
untill now i use a different html page for each channel with embeded wmp and i use a list of links to call the html page. i dont know how to use javascript and thats why i ask.i know that there is a way to manage what i want to do but i dont know. i only know how to embed a wmp using embed or object tags i would be happy if someone show me the way... |
|
#4
|
||||
|
||||
|
Re: change the 'src' value using javascript
I meant could you post your hmtl code.
As in the embed code you are using at the moment
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: change the 'src' value using javascript
Quote:
|
|
#6
|
||||
|
||||
|
Re: change the 'src' value using javascript
Use this (I've added an ID attribute):
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript to change Base href? | Zonglars | JavaScript Forum | 11 | Jul 28th, 2007 00:32 |
| Javascript detect Flash, change CSS? | bigd | JavaScript Forum | 0 | May 3rd, 2007 08:20 |
| change DIV | moiseszaragoza | JavaScript Forum | 1 | Mar 15th, 2007 00:32 |
| [SOLVED] How To: Change characters in a textarea? Using Javascript | Anonymous User | JavaScript Forum | 0 | Feb 16th, 2005 12:34 |
| how do u change the content of a <div> with javascript | benbacardi | JavaScript Forum | 4 | Jun 26th, 2004 19:14 |