Results 1 to 3 of 3

Thread: Darkening of Screen w/ Embedding Content In Center - Please help!

  1. #1
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Darkening of Screen w/ Embedding Content In Center - Please help!

    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!

  2. #2
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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"

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    ItsMeOnly is correct. There are scripts for that, one of the best is Lightbox v2:

    http://www.dynamicdrive.com/dynamici...box2/index.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •