Results 1 to 7 of 7

Thread: Lightbox: select menu showing on top of popup

  1. #1
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox: select menu showing on top of popup

    I have things working with the lightbox image viewer script but I have two problems.

    1. The overlay won't show in FF 1.5

    2. On my page where the popup shows, a select menu in a form is on top of the image viewer... lol!

    Any ideas?

    Thanks,
    Will

  2. #2
    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

    For number one:

    Please post a link to the page on your site that contains the problematic script so we can check it out.


    For number two, Lightbox is so complicated that there is probably no good way to do this other than remove the select box from the page. This is an IE only bug.
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Select menu problem

    Thanks so much. Here's the link...

    https://www947.ssldomain.com/wtomlin...il.cfm?PID=166

    Will

  4. #4
    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

    In lightbox.css change this line:

    Code:
    #overlay{ background-image: url(Images/overlay.png); }
    to:

    Code:
    #overlay{ background-image: url(../Images/overlay.png); }
    The reason IE finds it is that IE is working off of the page's relative position for the filter but, true style (which the above lines are) work off of the relative position of the stylesheet file.

    Also, now that I see your page, I think I can make a fairly simple fix for the select box after all but, will have to get back to you on that.
    - John
    ________________________

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

  5. #5
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Partially fixed

    John,

    THe overlay is fixed now. I have the select almost fixed. I'm changing some js in the js file.

    Line 208

    if(objLink.getAttribute('title')){
    document.addtocartform.optionID.style.display='none';

    Then in function hidelightbox() I do this:

    document.addtocartform.optionID.style.display='block';

    Just one little formatting issue left in IE. I'll post my fixes.

    Thanks,
    Will

  6. #6
    Join Date
    Aug 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Everything is ok!

    Yep John, that fixed all my problems. Here's my final working solution:

    Line 208 - I hide the select:

    if(objLink.getAttribute('title')){
    document.addtocartform.optionID.style.display='none';
    objCaption.style.display = 'block';

    Line 260 - I show it again when the box goes into hiding.

    function hideLightbox()
    {
    // get objects
    objOverlay = document.getElementById('overlay');
    objLightbox = document.getElementById('lightbox');

    // hide lightbox and overlay
    objOverlay.style.display = 'none';
    objLightbox.style.display = 'none';
    document.addtocartform.optionID.style.display='block';

    Hope this helps some others. Thanks much!

    Will

  7. #7
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Same problem here and not having much luck trying to fix it.

    http://elam.jrpwebcreations.com/decks/woodDecks.html

    I am using 2 scripts from Dynamic Drive- Jim Sayer's DHTML menu 5.7 and the Lightbox

    not seeing the z index on the navigation menu files at all

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
  •