Hello guys,
I have a image on my static site. I want to load that html page along with that image but when a user click in that image area it tries to play a youtube video within that image area through flash. How can i accomplish that? Can anyone help me about that. From youtube what code i need. Can you give me the concept I am a novice developer. So if anybody kind enough to show me through
raw code here

thank you all

Recommended Answers

All 2 Replies

How i do that in javascript. Cause i heard that it can be done through
javascript.

Well, when you go to a YouTube video, it has the code for embedding the video into a webpage. That could be a useful starting point.

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/NiEUMTT5TxY&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/NiEUMTT5TxY&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.