Almost there...but does not resize properly. Here's my code. Is it correct?
HTML Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.1.css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.1.js"></script>
<script type="text/javascript">
jQuery(function($) {
if(top !== window){
var $$ = parent.jQuery;
$$('#fancyzone').html($('#fancycontent').html());
$$('#fancyzone #various3').fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe'
});
$$('#fancyzone #various4').fancybox({
'width' : '75%',
'height' : '75%',
'padding' : 10,
'autoScale' : false,
'transitionIn' : 'fade',
'transitionOut' : 'fade'
});
$('#fancycontent a').click(function(e){e.preventDefault(); $$('#' + this.id).click();});
} else {
$('#various3').fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe'
});
$('#various4').fancybox({
'width' : '75%',
'height' : '75%',
'padding' : 10,
'autoScale' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
}
});
</script>
<style type="text/css">
</style>
</head>
<body>
<div id="fancycontent">
<p><a id="various3" href="http://www.calico9.com/C2/lookbook2/index.html">SPRING/SUMMER LOOKBOOK</a> </p>
<p><a id="various4" href="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf">SPRING/SUMMER VIDEO</a></p>
</div>
</body>
</html>
Thanks for all the help
Bookmarks