baryshkov,
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://fancyapps.com/fancybox/source/jquery.fancybox.css">
<script type='text/javascript' src="http://fancyapps.com/fancybox/source/jquery.fancybox.js"></script>
<script type='text/javascript'>
$(document).ready(function(){
$.fancybox.open({
'href' : 'http://javascript.ru/',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'autoDimensions' : false,
'autoSize' : true,
'speedIn' : '500',
'speedOut' : '500',
'type' : 'iframe',
'closeBtn' : true,
'centerOnScroll' :true ,
'padding' : 20,
'scrolling' : 'no'
})
function onb(){
$.fancybox.open({
'href' : 'http://javascript.ru/forum/',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'autoDimensions' : false,
'autoSize' : true,
'speedIn' : '500',
'speedOut' : '500',
'type' : 'iframe',
'closeBtn' : true,
'centerOnScroll' :true ,
'padding' : 20,
'scrolling' : 'no'
});
}
$("a").click(onb)
});
</script>
</head>
<body>
<a rel="a" class="" >click</a>
</body>
</html>