View Full Version : Click photo to load the player

03-27-2011, 04:39 AM
Basically what i wanna do is hide the photo onclick and load the Video

here what i got

<!--ybadel l conentetn
function ReplaceContentInContainer(id,id2) {
var container = document.getElementById(id);
var Jdeed = document.getElementById(id2);
container.innerHTML = Jdeed;

<!--tabdeeel -->
<div id="poster" >
<a href="javascript:ReplaceContentInContainer('poster','video')"><img src="050825-F-0000N-002.jpg" width="640" height="390">

<div id="video">
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/JxdfUsULr0s" frameborder="0" allowfullscreen></iframe>

i get an error Please Help