Romych
Вот тестовик http://bpirk.sims2rpg.ru/ http://bpirk.sims2rpg.ru/viewtopic.php?id=1#p2
Ставил в хтмл низ это
<!--vimeo плеер-->
<style type="text/css">
#button-vimeo {background-image:url('http://img444.imageshack.us/img444/3523/vimeog.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat}
</style>
<script type="text/javascript">
function addSpoiler_vimeo(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[vimeo]",from))==-1) return str;
if((pos2=str.indexOf("[/vimeo]"),pos+8)==-1) return str;
newpos=str.indexOf("[vimeo]",pos+8)
if(newpos<pos2 && newpos!=-1) str=addSpoiler_vimeo(str,pos+8,true)
if((pos2=str.indexOf("[/vimeo]",pos+8))==-1) return str;
str=str.substring(0,pos)+makeSpoiler_vimeo(str.substring(pos+7,pos2))+str.substring(pos2+8,str.length)
if( str.indexOf("[vimeo]")!=-1 && internal==false) str=addSpoiler_vimeo(str,0,false)
return str}
function makeSpoiler_vimeo(txt){
txt='<br /><embed src="http://vimeo.com/moogaloop_local.swf?clip_id='+txt+'&server=vimeo.com&autoplay=0&fullscreen=1&show_portrait=0&show_title=0&show_byline=0&color=00ADEF&context=user:1372093&context_id=&hd_off=0&buildnum=33670" quality="high" width="640" height="480" wmode="opaque" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';
return txt}
if((document.URL.indexOf("viewtopic.php")!=-1) || (document.URL.indexOf("post.php")!=-1)){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addSpoiler_vimeo(post.innerHTML,0,false)}}
if(form=document.getElementById("form-buttons"))
forma.getElementsByTagName("tr")[0].insertCell(15).innerHTML="<img src='/i/blank.gif' img title='vimeo_player' id='button-vimeo' onclick=\"bbcode('[vimeo]', '[/vimeo]');\"/>"
</script>