Hey web wizards,
Is there anyone who can help me with the dreaded embedded video issue? I have code to embed video into my site using object for IE and embed for firefox. This works fine but now I also wish to dynamically change the source of the video depending on which link is clicked. I know how to acheive this but I believe that my source changing code for firefox is flawed
My code for IE which works great is :
<a href="#" onclick = "document.all.player1.Filename = 'new.wmv';"> Link</a>
But for firefox and opera (which also seems to like <embed> rather than <object>) I have the code below:
<a href="#" onClick = "document.embeds['p1'].src = ('new.wmv'); ">Link</a>
A simple problem but one which has cost me hours of time already so any help would be much appreciated.