Opening a DIV from an external page in Shadowbox

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Opening a DIV from an external page in Shadowbox

tracerbot
I'm trying to accomplish a page of Shadowbox links that reference and open elements from a separate page with all the DIVs.

----------------------------------------

So on "Page 01" I have:
<a rel="shadowbox; height=300;width=800" href="page02.html#div01">link 01</a>
<a rel="shadowbox; height=400;width=800" href="page02.html#div02">link 02</a>

And on "Page 02" I have:
<div id="div01" style="display:none">Content</div>
<div id="div02" style="display:none">Content</div>

----------------------------------------

The problem is that Shadowbox doesn't change the "display" property of the DIVs on "Page 02" the way it does if it is referencing a DIV from within the same page. And if the elements aren't hidden, Shadowbox displays both DIVs instead of the single one that is referenced.

Thank you.