View Single Post
Old 11-07-2012, 06:46 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
the simplest way seems to be to use an iframe, same as youtube does:
Code:
<body>
<iframe id="myvideo" width="533" height="300" src="" frameborder="0"></iframe>
<script>
function videoplaying() {
document.getElementById("myvideo").src="http://embed.break.com/MjM4NTM2Ng==";
return false;
}
</script>
<a href="#" onclick="videoplaying();">Video</a>
</body>
xelawho is offline   Reply With Quote
Users who have thanked xelawho for this post:
ttkh2011 (11-07-2012)