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
Original issue reported on code.google.com by
todd.pan...@gmail.com
on 18 Jun 2010 at 5:21