views:

379

answers:

4

hello i downloaded fancybox.net and edditted the example file from the download pack. i added a google maps map. and when i click on the iframe link, the iframe popup apears BEHIND the google maps map. thats not the way i want it offcourse. what did i do wrong? i didn't change the original code from the example file. see this image for the error: http://img297.imageshack.us/img297/8981/knipsel.png

A: 

It's a Z-index issue. If you set the Z-index for your popup to be something higher, it should show on top.

#element {
    z-index: 99;
}
S Pangborn
nope. i tried before. when i add z-index to #iframe.. i see the same. also set z-index for the googlemaps to -1, no changes.. #iframe{ z-index: 999 !important; }
rihan
have you examined the z-indexes using firebug?it's likely that fancybox uses the maximum z-index: 9999;
Haroldo
Can you post a link to your page? I bet the Z-index is still the issue. Google maps is tricky with the Z-index stuff.
S Pangborn
see my other post
rihan
A: 

i dont have online space right know

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="imagetoolbar" content="no" />
    <title>FancyBox 1.3.1 | Demonstration</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
    <script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.1.js"></script>
    <link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.1.css" media="screen" />

    <script type="text/javascript">
        $(document).ready(function() {


            $("#various3").fancybox({
                'width'             : '75%',
                'height'            : '75%',
                'autoScale'         : false,
                'transitionIn'      : 'none',
                'transitionOut'     : 'none',
                'type'              : 'iframe'
            });

        });
    </script>
</head>
<body>
<div id="content">
<a id="various3" style="z-index: 999999" href="http://google.ca"&gt;Iframe&lt;/a&gt;
<div><p>&nbsp;</p></div><iframe width="900" height="800" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.nl/maps?q=google&amp;amp;oe=utf-8&amp;amp;client=firefox-a&amp;amp;ie=UTF8&amp;amp;hl=nl&amp;amp;hq=google&amp;amp;hnear=&amp;amp;t=h&amp;amp;layer=c&amp;amp;cbll=43.432247,-95.58578&amp;amp;panoid=2fPtt4N4mRuitc1wXLm_wg&amp;amp;cbp=13,308.54,,0,14.77&amp;amp;ll=21.371244,-83.320312&amp;amp;spn=39.112201,79.013672&amp;amp;z=4&amp;amp;source=embed&amp;amp;output=svembed"&gt;&lt;/iframe&gt;&lt;br /><small><a href="http://maps.google.nl/maps?q=google&amp;amp;oe=utf-8&amp;amp;client=firefox-a&amp;amp;ie=UTF8&amp;amp;hl=nl&amp;amp;hq=google&amp;amp;hnear=&amp;amp;t=h&amp;amp;layer=c&amp;amp;cbll=43.432247,-95.58578&amp;amp;panoid=2fPtt4N4mRuitc1wXLm_wg&amp;amp;cbp=13,308.54,,0,14.77&amp;amp;ll=21.371244,-83.320312&amp;amp;spn=39.112201,79.013672&amp;amp;z=4&amp;amp;source=embed" style="color:#0000FF;text-align:left">Grotere kaart weergeven</a></small>
</body>
</html>
rihan
A: 

someone who has an answer?

rihan
A: 

its only a problem in the chrome browser,,

rihan