简体   繁体   English

Fancybox jQuery多个弹出框

[英]Fancybox jquery multiple popup boxes

I am using this http://fancybox.net/example for my code. 我正在使用此http://fancybox.net/example作为我的代码。

<a id="view1" href="#box1">Click1</a>

<div id="box1" style="display:none;">
<a id="view2" href="#box2">Click2</a>
</div>

<div id="box2" style="display:none;">
</div>

I implement fancybox on a#view1 and a#view2 so that when people click on Click1 it will open fancybox. 我在a#view1a#view2上实现了fancybox,以便当人们单击Click1时它将打开fancybox。 Then if they click on Click2 button within that fancybox, it will open box2. 然后,如果他们单击该Click2按钮,它将打开box2。 I want to do it as if the shape of box1 "transform" into shape of box2 but I could not do it. 我想将box1的形状“转换”为box2的形状,但是我做不到。 Although I think what I can do is to hide box1 and show box2 , it is not desired. 尽管我认为我能做的是隐藏box1和show box2 ,但这不是所希望的。 Can someone help? 有人可以帮忙吗?

you will need to place jquery code to close/hide the required layer. 您将需要放置jquery代码以关闭/隐藏所需的图层。 BTW, if you use Thickbox, life might be more easier, as it has wider community 顺便说一句,如果您使用Thinbox,则生活可能会更轻松,因为它拥有更广泛的社区

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM