In the underlying page I have:
Code: Select all
function centeredPopup(id){
$.fancybox.open({
'autoScale': true,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'speedIn': 500,
'speedOut': 300,
'autoDimensions': true,
'centerOnScroll': true,
'href' : 'popup.asp?qID='+id;
});
}
$(document).ready(function(e) {
$(".fancybox")
.attr('rel', 'gallery')
.fancybox({
type: 'iframe',
autoSize : false,
beforeLoad : function() {
this.width =400;
this.height =300;
}
});
});