• Page 1 of 1
  • 1
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Video frame in ajax? (How to..)
Video frame in ajax?
Ed05
Posts: 556
Reputation: 7

Message # 1 | 4:50 AM
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
Posts: 9296
Reputation: 456

Message # 2 | 2:00 PM
Ed05, what module do you want to use it in? If you use the Video module, videos are displayed in Ajax by default.
I'm not active on the forum anymore. Please contact other forum staff.
Ed05
Posts: 556
Reputation: 7

Message # 3 | 7:29 PM
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 happy

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
uCoz Community » For Webmasters » Custom Solutions » Video frame in ajax? (How to..)
  • Page 1 of 1
  • 1
Search: