Hi folks, Such a simple thing I need to do, and it doesn't seem like any of the regular swf players will meet my needs, so I think I need to do this workaround. I just need to be able to toggle between a high quality and a low quality .flv video.
So I'm thinking of just having two buttons with onclick events to change the innerhtml of the javascript, but I realized I don't know exactly how. can I create an id of one line of javascript, or should I replace the whole thing? Here is my code:
<script type="text/javascript">
var so = new SWFObject('/lessons/videos/player.swf','mpl','610','480','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addVariable('file','/lessons/videos/BukaTiende.flv');
so.write('mediaspace');
</script>
</div></div>
<input type="button" value="low"><input type="button" value="high">
In the above code, all I need to change is the "/lessons/videos/BukaTiende.flv" link to something like /lessons/videos/BukaTiende_lower.flv
Can I do this with a getElementById?
I do have jquery.