Results 1 to 5 of 5

Thread: iframe shim? (better yet, iframe sham)

  1. #1
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default iframe shim? (better yet, iframe sham)

    Ajax Tabs Content Script (v 2.1)
    http://www.dynamicdrive.com/dynamici...tent/index.htm

    I just can't figure this out despite all the reading I've done on the subject. I understand the problem but I can't seem to get any of the solutions to work for me. Clearly I am missing something.

    Go to http://revolutionaryviews.com/redo/home.html
    click on still galleries/interiors

    Notice how the menu options hide behind the iframe (in IE and FF).

    I figure if there was a place to go and find a simple solution to this problem it would be here.

    One shiny nickel and many thanks to the peron who can save me!

    Kona

  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 doesn't seem to happen except when Flash is in the iframe. Set the Flash tags wmode to transparent:

    Add in this language to your object/embed tag -

    Add the following parameter to the OBJECT tag:

    <param name="wmode" value="transparent">

    Add the following attribute to the EMBED tag:

    wmode="transparent"

    Or, if you are using two object tags, as can and is sometimes done, add the param tag to both of them.

    If you are using script to generate the tags (as is frequently done to avoid the 'click to activate' feature in some browsers), the wmode transparent must be passed to the script. This is easily accomplished but, varies depending upon the sort of script one uses. Some scripts do it automatically.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    kona (02-23-2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply.

    This is what I did and now the flash content won't display.

    <body>
    <div id="flashcontent">SimpleViewer requires Adobe Flash. <a href="http://www.macromedia.com/go/getflashplayer/">Get Adobe Flash.</a> If you have Flash installed, <a href="index.html?detectflash=false">click to view gallery</a>.</div>
    <script type="text/javascript">
    var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#333333");
    fo.addVariable("preloaderColor", "0xffffff");
    fo.addVariable("xmlDataPath", "gallery.xml");
    so.addParam("wmode", "transparent");
    fo.write("flashcontent");
    </script>
    </body>

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

    Whatever you did, it seems to be working fine. Perhaps you are viewing an old cached copy. Clear your cache and try viewing the page again.
    - John
    ________________________

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

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    kona (02-23-2008)

  7. #5
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    I got it but forgot to post and let you know.

    My mistake was
    so.addParam("wmode", "transparent");

    When it should have been
    fo.addParam("wmode", "transparent");

    Thanks so much for all your help!

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
  •