J
Jason Robertson
Hi,
I have video on my site and I'm trying to write something in java script
that will change the source of that video (without reloading the page).
Currently I have
<embed id='vid' src='movie.avi' enablejavascript='true>
and then in javascript I do
vid = document.getElementById("vid")
vid.src = <new path name for video>
This technique works for changing the source of images but does not work
here, any ideas? I've also tried using <object> and <param> tags but again
I cannot alter the source.
Thanks.
I have video on my site and I'm trying to write something in java script
that will change the source of that video (without reloading the page).
Currently I have
<embed id='vid' src='movie.avi' enablejavascript='true>
and then in javascript I do
vid = document.getElementById("vid")
vid.src = <new path name for video>
This technique works for changing the source of images but does not work
here, any ideas? I've also tried using <object> and <param> tags but again
I cannot alter the source.
Thanks.