473,322 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to show mp4 videos in popup window using the fancybox plugin?

how to show the mp4 videos in popup window using the fancy box plugin ..

here it is my code
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="jquery.js"></script>
  2.     <script type="text/javascript" src="jquery.fancybox-1.3.4.js"></script>
  3. <script type="text/javascript">
  4. $(document).ready(function () {
  5.     $("a.fancyvideo5").click(function () {
  6.         var url = $(this).attr('name');
  7.         $.fancybox({
  8.             'padding': 7,
  9.             'overlayOpacity': 0.7,
  10.             'autoDimensions': false,
  11.  
  12.             'content': '<div class="video-js-box">' +
  13.                         '<video class="video-js" width="635" height="475" controls preload>' +
  14.                        '<source src="' + url + '"' + 'type=video/mp4; codecs="avc1.42E01E, mp4a.40.2"' + '/> ' +
  15.                         '</video>' +
  16.                         '</div>',
  17.  
  18.  
  19.         });
  20.     }); 
  21.  
  22.  
  23. });
  24.  
  25. </script>
  26.  
  27.  
  28. <! -- -->
  29.  
  30. <a class="fancyvideo5" name="test.mp4"><img src="tt2.jpg" width="248" height="145" alt="Film" /></a>
Apr 16 '12 #1
1 12266
Dormilich
8,658 Expert Mod 8TB
are there messages in the Error Console?

line 14 also looks suspicious (invalid/missing characters)
Apr 16 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Raphael Gluck | last post by:
Hi everyone I am having a little problem with an asp page. I am trying to create a master/detail page, but on this occasion, it's only a small amount of detail, so i want to create a small page,...
4
by: gallery | last post by:
My client is asking that once a viewer visits his website, the onLoad popup window not show up again. What's the best way to do this? Thanks, Marje
7
by: E Michael Brandt | last post by:
I have been lurking here for some time, and now would like to ask a question of you clever coders: My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in the face of the new Opera...
4
by: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen...
1
by: Ken | last post by:
Is there a way to show a popup window using code behind in VB? Partial java script code: Open('htmpage.html')
1
by: sundarachaitanyam | last post by:
hi, I am just wondering how to create a modal popup using javascript. The popup window shouldnt contain minimize,close and maximize buttons and it should be resizable? I am trying using...
1
by: gudipati | last post by:
hi i am working on classic asp. i have strucked here. i am reading data from database(ms-access) . what my doubt is how can i show that reading data into popup window. can u pl give me...
12
by: Rahaman sharif | last post by:
Hi All, I have some problem in innerHtml. I have the textbox in innerHtml, In the innerHtml textbox was read only. I want make it to enable. if user enter the text that text will be retrieved, so...
4
by: jyo123 | last post by:
Hi, Is there any way to write perl script to save the popup window into specified location.Please anyone help on this. Thanks is advance.
1
by: mukeshrasm | last post by:
Hi For one of my project I have used Calendar Popup of this site http://www.mattkruse.com/javascript/calendarpopup/simple.html. I want to show the popup in the center of the window or even below...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.