Hi all,
I still have problem with iframes in fancybox...
I've tried:
- allowtransparency="true" on iframe tags in fancybox lib
- style="background:transparent;" on iframe tags in fancybox lib
or css
But nothing to do in IE...the iframe always displays a white
background...
I've tried the latest version of fancybox...
this is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>FancyBox 1.3.1 | Demonstration</title>
<script type="text/javascript" src="
http://code.jquery.com/
jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="./fancybox/
jquery.mousewheel-3.0.2.pack.js"></script>
<script type="text/javascript" src="./fancybox/
jquery.fancybox-1.3.1.js"></script>
<link rel="stylesheet" type="text/css" href="./fancybox/
jquery.fancybox-1.3.1.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript">
$(document).ready(function() {
$("#various3").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
<style>
#fancybox-outer {background:transparent;}
</style>
</head>
<body>
<div id="content">
<h1>fancybox <em>v1.3.1</em></h1>
<hr />
<ul>
<li><a id="various3" href="prova.html">Iframe</a></li>
</ul>
</div>
<div><p> </p></div>
</body>
</html>
and this is prova.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=windows-1250">
<meta name="generator" content="PSPad editor,
www.pspad.com">
<title></title>
</head>
<body style="background:transparent;">
<div>
Prova
</div>
</body>
</html>