google-code-export / nyromodal

Automatically exported from code.google.com/p/nyromodal
1 stars 1 forks source link

SWF/Flash file #489

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am having a problem trying to open an swf file. I have modified the YouTube 
option to check for a specific file. It works, but now all the windows open up 
the 720x426 size. It the link is a html/text it will not load but it will load 
an image???

Here is the code:

$('a.nyroModal').nyroModal({bgColor: '#000000'});                
 $(function() {
  $.nyroModalSettings({
    processHandler: function(settings) {
      var from = settings.from;
      if (from && from.href && from.href.indexOf('http://www.youtube.com/watch?v=') == 0) {
        $.nyroModalSettings({
          type: 'swf',
          height: 385,
          width: 640,
          url: from.href.replace(new RegExp("watch\\?v=", "i"), 'v/')
        });
      }
      if (from && from.href && from.href.indexOf('/video/theFile.swf')) {
        $.nyroModalSettings({
          type: 'swf',
          height: 426,
          width: 720
        });
      }    
    }
  });
});

Versions:
jquery.nyroModal-1.5.5.js
jquery-1.3.2.js

Original issue reported on code.google.com by todd.pan...@gmail.com on 18 Jun 2010 at 5:21

GoogleCodeExporter commented 9 years ago
Anyone??????

Original comment by todd.pan...@gmail.com on 9 Jul 2010 at 3:51