Derleek Posted July 22, 2008 Share Posted July 22, 2008 Hi, I am trying to figure out how to run a short little flash video every time the user clicks a link. what would the best way to do this be? I was thinking just putting the onClick ='callVideo()' in the <a> tag... Link to comment https://forums.phpfreaks.com/topic/116091-running-a-flash-video-onclick/ Share on other sites More sharing options...
adam84 Posted July 23, 2008 Share Posted July 23, 2008 Use the EMBED tag, then when the user clicks on a link, use javascript to change the SRC. This way, your page wouldnt have to refresh. Embed tag information http://www.htmlcodetutorial.com/embeddedobjects/_EMBED.html Link to comment https://forums.phpfreaks.com/topic/116091-running-a-flash-video-onclick/#findComment-597629 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.