954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Onclick play embedded video

I wrote this to trigger a video when an image is clicked, but its not working. Any help?

<head>
<style>
#movie {}
#img {}
</style>
</head>
<body>
 
<embed type="application/x-vlc-plugin" name="VLC" target="mymovie.webm" id="movie" > </embed>
<img src=myimage.jpg" id="img" />
 
<script>
  var v = document.getElementById("movie");
  var i = document.getElementById("img");
  i.onclick = function() {
     v.play();
};
</script>
</body>
612wharfavenue
Newbie Poster
6 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 


Which control to upload video in asp.net and how to upload video in asp.net ?

parmarsanjayr
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: