...

View Full Version : making a video play from a custom button



gstar
07-04-2012, 05:46 AM
<script type="text/javascript">
function myFunction() {
document.write('<table border="1" cellspacing="1" cellpadding="5">')
for(i = 0; i < 1; i++){
document.write('<tr>')
document.write('<td><embed name="twitcamPlayer" src="http://static.livestream.com/grid/LSPlayer.swf?hash=asqy3&autoplay=1" width="360" height="100" ></embed>' + i + '</td>')
document.write('</tr>')
}
}
document.write('</table>')
</script>
<button onclick="myFunction()">Try it</button>



Basically, i cant figure out a way to start the twitcam once the button is pressed any help guys?
Im new i dont know if this the right section, so sorry :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum