Results 1 to 4 of 4

Thread: CSS Pop Up Image Viewer - IE Iframe problem

  1. #1
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS Pop Up Image Viewer - IE Iframe problem

    Hello Everybody,

    I'm hoping somebody can help me out. I am using the CSS Popup Image Viewer script from Dynamic Drive, Url is located here http://www.dynamicdrive.com/style/cs...-image-viewer/.

    It's amazing and I love the way it works, however I did run into an annoying little problem.

    I found that when applying an Iframe to show up in the pop up box the script doesn't work in IE 7. Rather then images I am trying to show maps. Here is an example page, http://www.tbaye.com/hoverbox/.

    Here is the code I used

    Code:
    <a class="thumbnail" href="#thumb">Test Map Not working in IE<span><iframe scrolling="no" style="width:480px; height:410px; border:0px;" frameborder="0" src="http://www.tbaye.com/googlemaps.php?id=116"></iframe><br />This doens't work in IE</span></a><br />
    If you test it out, everything is great in Firefox, but I run into problems with IE 7. It's definitely an Iframe problem because I tried to put regular content (non maps) and it still doesn't work. As long as the Iframe code is there you will see a blank white spot in IE.

    Does anybody know why? Any help would be GREATLY appreciated!

    Thanks.

  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

    It appears to be a minor bug. Put this after your stylesheet link:

    Code:
    <!--[if IE]>
    <style type="text/css">
    .thumbnail span {
    visibility:visible;
    }
    </style>
    <![endif]-->
    But, you still won't be able to use the map, as while you are over it, you are no longer over the trigger.
    Last edited by jscheuer1; 08-14-2007 at 03:21 AM.
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John,

    Awesome! Thanks for your help.

    Does IE not recognize the Iframe as a trigger? It seems if I hover over just the border the window stays open, the the minute my mouse goes over the map, it's gone.

    Is there anyway to keep the map open when hovering? Is it possible to add some kind of recognizable layer over the map to keep it open while hovering?

    I really appreciate your help.

    Steve

  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

    Oddly enough (because this usually is not the case) IE seems to be behaving correctly as far as the hover state of the link goes. An iframe is a window. The mouse cannot be over two windows at once. When it is over the iframe, it is off of the page with the trigger on it, and so off of the trigger.

    If you need a stable yet dismiss-able iframe for interactive content, you should get a script for it. Css alone just won't work, and really has no advantage if the content in the iframe requires script anyway.

    One script you might consider is the Window Widget:

    http://www.dynamicdrive.com/dynamici...ndow/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
  •