|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Video frame in ajax? (How to..) |
Video frame in ajax? |
I need script for video in ajax window and i mean video , not some url or text in ajax.
I have this but it dont show video , just text Code <a href="javascript://" onclick="new _uWnd('myName','Window title',500,200,{min:1,shadow:1,header:1,max:1,resize:0},'$OTHER1$');">Click me</a> !
|
Sunny, i want for blog module. By the way i did not notice that the video in module video are displayed in ajax ? Maybe i can use and combine script from video module in blog to show in ajax
Just to understadnd bether, im looking for script that have button "play" for example and when press it open ajax window with video Added (2013-11-07, 1:29 PM) --------------------------------------------- If some one know to edit this code it will be useful for video in ajax, here just need <a>button</a> to open video from it.. Code <div id="videocontent" style="display:none;"><iframe width="640" height="360" src="" frameborder="0" allowfullscreen></iframe></div> <script type="text/javascript"> var apohtml; // Переменная для проверки ссылки в лайтбокс блоке $(document).ready(function() { // Проверка, ролик ли это ютюба + подмена ссылок и наложение оверлея $('* iframe').each(function() { if($(this).attr('src').indexOf('/embed/') != -1) { var aposplit = $(this).attr('src').split('?feature')[0] $(this).attr('src', aposplit + '?wmode=opaque'); $(this).before('<div class="apovideo" style="background:transparent;position:absolute;width:' + $(this).attr('width') + 'px;height:' + $(this).attr('height') + ';z-index:2;" onclick="$(this).children().hide();videoLightbox();return false;" />'); } }); // При наведении на оверлей над роликами $('div.apovideo').hover(function() { if($(this).next().attr('src') != apohtml) { $('#videocontent').find('iframe').attr('src', $(this).next().attr('src')); apohtml = $('#videocontent').find('iframe').attr('src'); }; }); // Очищаем содержимое лайтбокс блока при закрытии $('#fancybox-overlay, .fancybox-close').click(function(){ $('div#videocontent').empty(); }) }); </script> !
Post edited by Ed05 - Thursday, 2013-11-07, 7:29 PM
|
| |||
| |||