| 发表于: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页面.但是我试过了好象不行啊!(点击后没反应了) 有没有人用过啊?或者帮我研究一下怎么搞的?谢谢了 |
|
|
|
|