效果说明见:http://www.dolem.com/lytebox/我现在有frame.html:<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script type="text/javascript" language="javascript" src="http://www.dolem.com/lytebox/lytebox.js"></script>
<link rel="stylesheet" href="http://www.dolem.com/lytebox/lytebox.css" type="text/css" media="screen" />
</HEAD><BODY><a href="http://www.dolem.com/lytebox/misc/orion1.jpg" rel="lytebox[vacation]"><img src="http://www.dolem.com/lytebox/misc/orion1_thumb.jpg"></a>
<a href="http://www.dolem.com/lytebox/misc/orion2.jpg" rel="lytebox[vacation]"><img src="http://www.dolem.com/lytebox/misc/orion2_thumb.jpg"></a>
<a href="http://www.dolem.com/lytebox/misc/orion3.jpg" rel="lytebox[vacation]"><img src="http://www.dolem.com/lytebox/misc/orion3_thumb.jpg"></a></BODY>
</HTML>这样没问题,特效可以显示!我现在想把这个页面做为一个iframe内嵌在一个页面test.html:
<HTML>
<HEAD>
<TITLE></TITLE></HEAD><BODY><IFRAME align="middle" border="0" frameBorder="0" frameSpacing="0" id="frame3" marginHeight="0" marginWidth="0" scrolling="no" src="frame.html" width="500" height="300"></IFRAME></BODY>
</HTML>点击图片后效果只能在那个iframe中显示,我想让它在父页面test.html中显示!
网站中说可以实现:
IFRAMES: If you plan to use Lytebox in an iFrame environment, then you need to include lytebox.css in the parent document, while including lytebox.js in the iFrame document.把lytebox.css 放在父页面,把lytebox.js放在iframe页面.但是我试过了好象不行啊!(点击后没反应了)有没有人用过啊?或者帮我研究一下怎么搞的?谢谢了
<HEAD>
<TITLE> New Document </TITLE>
<script type="text/javascript" language="javascript" src="http://www.dolem.com/lytebox/lytebox.js"></script>
<link rel="stylesheet" href="http://www.dolem.com/lytebox/lytebox.css" type="text/css" media="screen" />
</HEAD><BODY><a href="http://www.dolem.com/lytebox/misc/orion1.jpg" rel="lytebox[vacation]"><img src="http://www.dolem.com/lytebox/misc/orion1_thumb.jpg"></a>
<a href="http://www.dolem.com/lytebox/misc/orion2.jpg" rel="lytebox[vacation]"><img src="http://www.dolem.com/lytebox/misc/orion2_thumb.jpg"></a>
<a href="http://www.dolem.com/lytebox/misc/orion3.jpg" rel="lytebox[vacation]"><img src="http://www.dolem.com/lytebox/misc/orion3_thumb.jpg"></a></BODY>
</HTML>这样没问题,特效可以显示!我现在想把这个页面做为一个iframe内嵌在一个页面test.html:
<HTML>
<HEAD>
<TITLE></TITLE></HEAD><BODY><IFRAME align="middle" border="0" frameBorder="0" frameSpacing="0" id="frame3" marginHeight="0" marginWidth="0" scrolling="no" src="frame.html" width="500" height="300"></IFRAME></BODY>
</HTML>点击图片后效果只能在那个iframe中显示,我想让它在父页面test.html中显示!
网站中说可以实现:
IFRAMES: If you plan to use Lytebox in an iFrame environment, then you need to include lytebox.css in the parent document, while including lytebox.js in the iFrame document.把lytebox.css 放在父页面,把lytebox.js放在iframe页面.但是我试过了好象不行啊!(点击后没反应了)有没有人用过啊?或者帮我研究一下怎么搞的?谢谢了
<a href="http://www.dolem.com/lytebox/misc/orion2.jpg" rel="lytebox[vacation]" target="_top"><img src="http://www.dolem.com/lytebox/misc/orion2_thumb.jpg"></a>
<a href="http://www.dolem.com/lytebox/misc/orion3.jpg" rel="lytebox[vacation]" target="_top"><img src="http://www.dolem.com/lytebox/misc/orion3_thumb.jpg"></a>
frame.html的函数都经引用父级的parent
没试过 觉得应该可以
<link href="../inc/lytebox/lytebox.css" rel="stylesheet" type="text/css" media="screen"/>
iFrames: If you plan to use Lytebox in an iFrame environment, then you need to include lytebox.css in the parent document, while including lytebox.js in the iFrame document.