Jump to content

lightbox display at parent page


wtp

Recommended Posts

hi,

 

i have a problem here. in parent page, i using iframe to display child page. while child page got photo and user can click on photo then it will enlarge the photo using lightbox. but problem is when it display, the lightbox area only at child page. how to show the lightbox area at parent page?

 

thanks

Link to comment
Share on other sites

<p>This is the main content. To display a lightbox click <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</a></p>
<div id="light" class="white_content">This is the lightbox content. <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a></div>
<div id="fade" class="black_overlay"></div>

 

the above code i get it from "Create a Lightbox effect only with CSS - no javascript needed". i set it at child page, how to display it in parent page?

please guide ! thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.