wtp Posted April 27, 2009 Share Posted April 27, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/155795-lightbox-display-at-parent-page/ Share on other sites More sharing options...
wtp Posted April 30, 2009 Author Share Posted April 30, 2009 <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 Quote Link to comment https://forums.phpfreaks.com/topic/155795-lightbox-display-at-parent-page/#findComment-822332 Share on other sites More sharing options...
wtp Posted May 1, 2009 Author Share Posted May 1, 2009 how to overlay the parent page as well when i click the child page image? anybody? Quote Link to comment https://forums.phpfreaks.com/topic/155795-lightbox-display-at-parent-page/#findComment-823159 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.