View Full Version : Darkening of Screen w/ Embedding Content In Center - Please help!

09-11-2006, 12:01 PM
Go to http://www.askaninja.com/ and click to play one of the episodes on the "RECENT EPISODES" bar (the ones that say "click to play") and notice how there is a darkening effect to the entire page, with a quicktime object embeded into it that is centered. I want to do the same thing except instead of a quicktime video, I want to embed a flash video.

How do I make the script darken like that and embed a Flash object in the middle? Or just embedding an image file in the middle is fine to (jpg, png, etc). If anyone knows of such a script, please let me know, it would be much appreciated!

09-11-2006, 07:44 PM
the "darkening" is made with semitransparent (opacity: 0.5, filter: alpha(opacity=50);) div covering all the viewport (width: 100%, height 100%) and having "display: none|block" property switched by JS.

nice effect, could actually be done with "fading"

09-12-2006, 02:17 AM
ItsMeOnly is correct. There are scripts for that, one of the best is Lightbox v2: