Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replacing a photo with an embedded video with onclick

Status
Not open for further replies.

dawn1217

Programmer
Sep 9, 2002
12
0
0
US
Hello,
I am hoping there is a simple solution to a problem I've been struggling with. I have an image on a page that I would like to replace with an embedded video ".mov quicktime file" when the user clicks a separate image that says something like "play video".
I would prefer to replace the photo keeping the video in the same place rather than opening in a new window.
If anyone has any ideas or whether this is even possible I would love to hear from you.
Thanks for any help. :)
Dawn
 
I would take advantage of DYNSRC, myself.
Code:
<img dynsrc="SomePicture.jpg" id="movieSlot">
<br>
<img src="SomeOtherPicture.jpg" onClick="movieSlot.dynsrc='SomeMovie.avi'">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top