By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,929 Members | 634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,929 IT Pros & Developers. It's quick & easy.

How do I open a video within the same iFrame when I have a still shot as the source?

P: 1
Here's the iframe code I have now
Expand|Select|Wrap|Line Numbers
  1. <iframe src="still_for_video.jpg" width="500" height="450" frameborder="0" scrolling=no name="video" title="video"></iframe>
  2.  
I want the iframe to open with the .jpg and then when I click the .jpg, I want the video to play within the same iFrame. Please help!
Jul 15 '10 #1
Share this Question
Share on Google+
1 Reply


TheServant
Expert 100+
P: 1,168
@Francine Morden
What about embedding a video instead of using iframe? You can set the initial frame of the video, and most browsers when you hover over it, it will show a play button. Have a look at how to embed things like a youtube video and play with that.

What you have there will not work because as you say, your source is static. the only way I can see it being possible is using javascript to change the src when it's clicked. Javascript is what you need for events based actions.
Jul 16 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.