youtube link to disable -
05-20-2008
, 04:27 AM
Hello!
I would like to disable youtube movie which is located on the main page.
I want it have enabled but on subpage.
I`ve tried to do such code:
<div onclick="followLink('#faq1')">
<object width="270" height="226">
<param name="movie"
value="http://www.youtube.com/v/y51uG9FGNoA&hl=pl"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/y51uG9FGNoA&hl=pl"
type="application/x-shockwave-flash" wmode="transparent" width="270"
height="226">
</embed>
</object>
</div>
<a name="#faq1">
test
</a>
where followLink (stored in the seperate file) looks like this:
function followLink(path) {
window.document.location.href = path;
}
I would like to have this movie on the main page, but I want it have
viewable and playable
on subpages. On the main page I would like to have only first frame of this
movie
How to achieve it using javascript? Is it possible?
Thank you in advance for help
M. |