Подскажите как вставлять видео с kiwi.kz ? я фильмыне могу закинуть, один киви нравится только))) заранее благодарен
Подскажите как вставлять видео с kiwi.kz ?
Страница: 1
Сообщений 1 страница 2 из 2
Поделиться225-07-2010 15:57
arsenovd написал(а):
Подскажите как вставлять видео с kiwi.kz ? я фильмыне могу закинуть, один киви нравится только))) заранее благодарен
извините за задержку но лучше поздно чем никогда
Код:
<!--kiwi плеер-->
<style type="text/css">
#button-kiwi {background-image:url('http://s44.radikal.ru/i104/1007/d0/6f99b06ac106.gif'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat}
</style>
<script type="text/javascript">
function addKiwi(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[kiwi]",from))==-1) return str;
if((pos2=str.indexOf("[/kiwi]"),pos+6)==-1) return str;
newpos=str.indexOf("[kiwi]",pos+6)
if(newpos<pos2 && newpos!=-1) str=addKiwi(str,pos+6,true)
if((pos2=str.indexOf("[/kiwi]",pos+6))==-1) return str;
str=str.substring(0,pos)+makeKiwi(str.substring(pos+6,pos2))+str.substring(pos2+7,str.length)
if( str.indexOf("[kiwi]")!=-1 && internal==false) str=addKiwi(str,0,false)
return str}
function makeKiwi(txt){
txt='<br /><embed src="http://v.kiwi.kz/v/'+txt+'" type="application/x-shockwave-flash" width="576" height="432" allowFullScreen="true" allowScriptAccess="always" wmode="transparent"></embed>';
return txt;}
function tag_kiwi()
{var FoundErrors = '';
var enterURL = prompt("Введите окончание ссылки на видеофайл с kiwi.kz", "jt8kli14oo1c");
if (!enterURL)
{FoundErrors += " " + error_no_url;}
if (FoundErrors)
{alert("Ошибка!" + FoundErrors);
return;}
insert("[kiwi]" + enterURL + "[/kiwi]");}
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=addKiwi(post.innerHTML,0,false)}}
if(form=document.getElementById("form-buttons"))
form.getElementsByTagName("tr")[0].insertCell(14).innerHTML="<img src='/i/blank.gif' img title='kiwi_player' id='button-kiwi' onclick=\"tag_kiwi()\"/>"
</script>HTML - низ
Страница: 1