Here's the code. Do with it what you like, it's simple no harm if you don't use it. Sorry I couldn't be more help, I don't have any experience with Flash. When I started I didn't for see some issues.
Put this in the head:
Code:
<script type="text/javascript">
function youClick() {
var cheight = document.getElementById('youclicklink').style.height;
String(cheight);
cheight = cheight.replace('px','');
cheight = parseInt(cheight);
document.getElementById('youclicklink').style.height = cheight-25+'px';
document.getElementById('youclicklink').style.display = 'block';
}
</script>
This is your movie:
Code:
<a href="yoururl" style="display: block; position: absolute; width: 560px; height: 340px; display: none;" id="youclicklink"></a>
<object width="560" height="340" onclick="youClick();">
<param name="movie" value="http://www.youtube.com/v/JTttSMPz3Y4&hl=en_GB&fs=1&">
</param>
<param name="wmode" value="transparent"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/JTttSMPz3Y4&hl=en_GB&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="560" height="340"></embed></object>
You URL goes where it says...well yoururl. The height and width of the link (the red numbers) should be the height and width of the YouTube video.
Also, notice on the <object> tag I have added: onclick="youClick();"
These things will be useful should you choose to use the script/part of it.
Tim
EDIT: People might be thinking he's in the Flash forum why no Flash experience? I didn't know I was in the Flash forum actually haha I just saw it in recent posts. Sorry.
Bookmarks