Перейти к публикации

Не переключается плеер


Рекомендованные сообщения

Сайт: dirfilms.net

На сайте имеется переключение плееров под видео. (Добавил новый плеер) и Видимо проблема в неправильно прописанном коде.. Как исправить?

Добавленный код:


<div class="section">

[xfgiven_video]<div id="jwplayer" style="position: relative; width: 940px; "></div>

<script src="/engine/modules/myModules/JWPlayer5/swfobject.js" type="text/javascript"></script>

<script src="/engine/modules/myModules/JWPlayer5/jwplayer.js" type="text/javascript"></script>

<script type="text/javascript">

jwplayer("jwplayer").setup({

'flashplayer': "/engine/modules/myModules/JWPlayer5/player.swf",

'width': '{width}',


'height': '{height}',

'allowfullscreen':'true',

'allowscriptaccess':'always',


'wmode':'opaque',

'controlbar':'over',

'dock':'true',

'dock.position':'left',

'mute':'false',

'stretching':'uniform',

'autostart': 'false',

'file': '[xfvalue_video]',

'logo.file':'/uploads/icon-dirfilms-net.png',

'logo.hide':'false',

'logo.position':'top-right',

'logo.link':'http://dirfilms.net/',

'abouttext':'DIRFilms.NET',

'aboutlink':'http://dirfilms.net/',

            'skin':'/engine/modules/myModules/JWPlayer5/NewTubeDark.zip'


});

    </script>

    </div>[/xfgiven_video]
Полный код:

<div class="section">

[xfgiven_video]<div id="jwplayer" style="position: relative; width: 940px; "></div>

<script src="/engine/modules/myModules/JWPlayer5/swfobject.js" type="text/javascript"></script>

<script src="/engine/modules/myModules/JWPlayer5/jwplayer.js" type="text/javascript"></script>

<script type="text/javascript">

jwplayer("jwplayer").setup({

'flashplayer': "/engine/modules/myModules/JWPlayer5/player.swf",

'width': '{width}',


'height': '{height}',

'allowfullscreen':'true',

'allowscriptaccess':'always',


'wmode':'opaque',

'controlbar':'over',

'dock':'true',

'dock.position':'left',

'mute':'false',

'stretching':'uniform',

'autostart': 'false',

'file': '[xfvalue_video]',

'logo.file':'/uploads/icon-dirfilms-net.png',

'logo.hide':'false',

'logo.position':'top-right',

'logo.link':'http://dirfilms.net/',

'abouttext':'DIRFilms.NET',

'aboutlink':'http://dirfilms.net/',

            'skin':'/engine/modules/myModules/JWPlayer5/NewTubeDark.zip'


});

    </script>

    </div>[/xfgiven_video]

[xfgiven_namba]<div class="box[xfnotgiven_video][xfnotgiven_vk] visible[/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<object height="{height}" width="{width}" type="application/x-shockwave-flash" data="http://video.namba.net/swf/player/3.2.11/flowplayer-3.2.11.swf"><param value="true" name="allowfullscreen"><param value="opaque" name="wmode"><param value="always" name="allowscriptaccess"><param name="src" value="http://video.namba.net/swf/player/3.2.11/flowplayer-3.2.11.swf" /><param value="config=http://video.namba.net/flashvars-3.2.11.php?i=[xfvalue_namba]" name="flashvars"></object>

</div>[/xfgiven_namba]

[xfgiven_keyset]<div class="box[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba] visible[/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<object data="http://st.kset.kz/pl/pl.swf?v=5" type="application/x-shockwave-flash" width="{width}" height="{height}" name="flash_object" id="flash_object"><param name="bgcolor" value="#ffffff" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://st.kset.kz/pl/pl.swf" /><param name="flashvars" value="st=http://kset.kz/v.php?id=[xfvalue_keyset]" /></object>

</div>[/xfgiven_keyset]

    [xfgiven_vk]<div class="box[xfnotgiven_video] visible[/xfnotgiven_video]" id="player">

<iframe src="[xfvalue_vk]" width="{width}" height="{height}" frameborder="0" scrolling="no" allowfullscreen></iframe>

</div>[/xfgiven_vk]

[xfgiven_openfile]<div class="box[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi] visible[/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="{width}" height="{height}" id="player"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="FLASHVARS" value="videoID=[xfvalue_openfile]" /><param name="movie" value="http://whitecdn.org/player/f4af2384bdbe741ed23e7b0c230f4d17/player.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><embed src="http://whitecdn.org/player/f4af2384bdbe741ed23e7b0c230f4d17/player.swf" quality="high" bgcolor="#FFFFFF" width="{width}" height="{height}" name="player" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FLASHVARS="videoID=[xfvalue_openfile]" /></object>

</div>[/xfgiven_openfile]

[xfgiven_kinostok]<div class="box[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo] visible[/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<embed src="[xfvalue_kinostok]" wmode="transparent" FlashVars="skin=skins/minimal" height="{height}" width="{width}" allowscriptaccess="always" allowfullscreen="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" /></embed>

</div>[/xfgiven_kinostok]

[xfgiven_24video]<div class="box[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo][xfnotgiven_kinostok] visible[/xfnotgiven_kinostok][/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="{width}" height="{height}" id="24video_player_da280432581267798ddd724a7a6a54c2_[xfvalue_24video]" name="player" class="player-object"><param name="movie" value="http://www.24video.com/player/new24_play.swf" /><param name="quality" value="high" /><param name="flashVars" value="id=[xfvalue_24video]" /> <param name="allowFullScreen" value="true" /> <param name="AllowScriptAccess" value="always"> <param name="wmode" value="opaque"> <embed src="http://www.24video.com/player/new24_play.swf" class="player-object" name="embed" width="{width}" height="{height}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashVars="id=[xfvalue_24video]" allowFullScreen="true" AllowScriptAccess="always" wmode="opaque"/></object>

</div>[/xfgiven_24video]

[xfgiven_megogo]<div class="box[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo][xfnotgiven_kinostok][xfnotgiven_24video] visible[/xfnotgiven_24video][/xfnotgiven_kinostok][/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<iframe width="{width}" height="{height}" src="[xfvalue_megogo]" scrolling="no" frameborder="0" allowfullscreen></iframe>

</div>[/xfgiven_megogo]

[xfgiven_trailer_video]<div class="box[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo][xfnotgiven_kinostok][xfnotgiven_24video] visible[/xfnotgiven_24video][/xfnotgiven_kinostok][/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]" id="player">

<object id="trvideoplayer{news-id}" type="application/x-shockwave-flash" data="http://www.youtube.com/v/[xfvalue_trailer_video]&hl=ru_RU&fs=1&" width="{width}" height="{height}"><param name="bgcolor" value="#333333" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://www.youtube.com/v/[xfvalue_trailer_video]&hl=ru_RU&fs=1&" /><param name="flashvars" value="comment={title}&amp;st=02AEEAG89v5HbZJaTcSOL4N2Qi63GyzsQAX62Nf9m56TG2UcYm5iRd0ibpm5fp2UhTsd0tYsNXQW5hJpW0JFdwjRfSQD6WQDpW5rk&amp;poster={THEME}/dleimages/preview.jpg&amp;file=[xfvalue_trailer_video]" /></object>

</div>[/xfgiven_trailer_video]

<div style="margin-top:15px;"></div>

<ul class="tabs btn-group">

[xfgiven_video]<li class="btn btn-warning active"><i class="icon-warning-sign icon-white"></i> DIRFilms</li>[/xfgiven_video]

        [xfgiven_namba]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk] active[/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> Namba</li>[/xfgiven_namba]

        [xfgiven_keyset]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba] active[/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> Keyset</li>[/xfgiven_keyset]

        [xfgiven_vk]<li class="btn btn-warning[xfnotgiven_video] active[/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> ВКонтакте</li>[/xfgiven_vk]

[xfgiven_openfile]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi] active[/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> OpenFile</li>[/xfgiven_openfile]

[xfgiven_kinostok]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo] active[/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> KinoStok</li>[/xfgiven_kinostok]

[xfgiven_24video]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo][xfnotgiven_kinostok] active[/xfnotgiven_kinostok][/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> 24video</li>[/xfgiven_24video]

[xfgiven_megogo]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo][xfnotgiven_kinostok][xfnotgiven_24video] active[/xfnotgiven_24video][/xfnotgiven_kinostok][/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> Megogo</li>[/xfgiven_megogo]

[xfgiven_trailer_video]<li class="btn btn-warning[xfnotgiven_video][xfnotgiven_vk][xfnotgiven_namba][xfnotgiven_keyset][xfnotgiven_myvi][xfnotgiven_openfile][xfnotgiven_jampo][xfnotgiven_kinostok][xfnotgiven_24video] active[/xfnotgiven_24video][/xfnotgiven_kinostok][/xfnotgiven_jampo][/xfnotgiven_openfile][/xfnotgiven_myvi][/xfnotgiven_keyset][/xfnotgiven_namba][/xfnotgiven_vk][/xfnotgiven_video]"><i class="icon-warning-sign icon-white"></i> Трейлер фильма</li>[/xfgiven_trailer_video]

<a class="btn" onclick="UppodCurtain('player')"><i class="icon-eye-close"></i> Выключить свет</a>

        <a id="videonf-id-{news-id}" class="btn btn-primary"><span rel="tooltip" onclick="VideoNF('{news-id}'); return false;" title="Сообщить об ошибке"><i class="icon-warning-sign icon-white"></i> Видео не работает</span></a>

</ul>

  <div>

</div>

Ссылка на сообщение
Поделиться на других сайтах

Присоединяйтесь к обсуждению

Вы можете опубликовать сообщение сейчас, а зарегистрироваться позже. Если у вас есть аккаунт, войдите в него для написания от своего имени.

Гость
Ответить в тему...

×   Вставлено в виде отформатированного текста.   Вставить в виде обычного текста

  Разрешено не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отобразить как ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

×
×
  • Создать...