Обновление (@Hussein)
(function($) {
$.fn.flickr = function(o){
//FLICKR STUFF
};
if(o) $.extend(s, o);
return this.each(function(){
var list = $('<ul>').appendTo(this);
var url = $.flickr.format(s);
$.getJSON(url, function(r){
// MORE FLICKR STUFF
};
if (s.callback) s.callback(list);
//START CALLBACK FUNCTION
$('#photographs ul li a img').fadeTo('fast', 0.7);
$('#photographs ul li a img').hover(function() {
$(this).fadeTo('fast', 1);
},function() {
$(this).fadeTo('fast', 0.7);
});
$("#photographs ul li a").fancybox({
'hideOnContentClick': false,
'zoomSpeedIn': 0,
'zoomSpeedOut': 0,
'overlayShow': true,
'overlayColor': '#000',
'overlayOpacity': 0.9,
'padding': 0
});
// OVERFLOW QUESTION SCRIPT - DOESN'T FIND INNER HEIGHT
var outer = $('#photographs').outerHeight(),
inner = $('#test').height();
if(inner>outer){
alert('Inner exceeded outer');
}
};
});
});
};