您的位置:程序门 -> web 开发 -> javascript



有人用过 lytebox 效果吗?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


有人用过 lytebox 效果吗?
发表于:2007-07-06 16:15:36 楼主
效果说明见: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页面.但是我试过了好象不行啊!(点击后没反应了)

有没有人用过啊?或者帮我研究一下怎么搞的?谢谢了
发表于:2007-07-06 16:23:521楼 得分:0
帮顶
发表于:2007-07-07 13:17:332楼 得分:0
自己顶~~~~~~~没人会吗
发表于:2007-07-07 13:33:303楼 得分:0
a   href= "http://www.dolem.com/lytebox/misc/orion1.jpg "   rel= "lytebox[vacation] "   target= "_top "> <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] "   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>
发表于:2007-07-09 08:47:374楼 得分:0
楼上的大哥   请问您试过吗?   这么简单的话我也不来发贴了....
发表于:2007-07-09 16:22:145楼 得分:0
再顶一次
发表于:2007-07-10 09:08:236楼 得分:0
把js文件也放到父页面
frame.html的函数都经引用父级的parent
没试过 觉得应该可以


快速检索

最新资讯
热门点击