<div id="light" class="white_content">TEXT HERE <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a></div></div>
What this does is it has the link as you saw in the example saying example and when you click it you got that pop up, well this code is exactly what that does.
And of course the close link closes the poped up box.
NOTE: You need both the codes otherwise it won't work.
Now the code below declares the black background for the black_overlay div when you click the link.
<div id="light" class="white_content">You're now viewing the lightbox content in css, but with some javascript. <BR><BR><div align="right"><a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a></div></div>
<div id="fade" class="black_overlay"></div>
</body>
</html>
_________________
Train Insane or Remain The Same
There's No Room In A Warriors Heart For Self Doubt
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum