Page 1 of 1

Embed youtube without controls

Posted: 18 Jun 2010, 13:52
by Mess
I saw a youtube embed code for embedding a youtube video, without the controls. Can anyone help me find the relevant part, to make it work in a bbcode?
In a perfect world having the controls show up on mouseover would be even better. :D

Code: Select all

<a class="i" href="xiii.us/ms/music-player-hide">Hide YouTube Video Controls Code By Eileen
<style>
x.i i, .i {display:none;}
div.xiiiYouTube {width:320px; height:240px !important; overflow:hidden; border:0px hotpink dashed; position:relative; top:0px;}
object.xiiiYouTube {position:absolute; clip: rect(1px, 320px, 240px, 1px)}
</style>

</a>
<div class="xiiiYouTube">
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="270" width="320" class="xiiiYouTube" data="http://www.youtube.com/v/eIabgPX14R4&autoplay=1&loop=1">
  <param name="allowScriptAccess" value="never" />
  <param name="allowNetworking" value="internal" />
  <param name="movie" value="http://www.youtube.com/v/eIabgPX14R4&autoplay=1&loop=1" />
  <param name="wmode" value="transparent" />
</object>
<i class="i"> END code to remove Video Controls </i>
</div>
</a>
Source

I am currently using the youtube bbcode from this thread: viewtopic.php?f=3&t=273 and its working as expected, I just wanted the added feature on my portal.
Thanks in advance. :)