ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Overlapping problems

January 02, 2009 1:21pm

Subscribe [3]
  • #1 / Jan 02, 2009 1:21pm

    smeg

    41 posts

    Based off an EE template, I’m trying to add a drop down menu to one of my Nav buttons.

    Unfortunately, when you are at a page that contains a flash gallery, the drop down menu *sometimes* goes *behind* the flash window.

    It doesn’t seem to be browser specific, I get it in FF2 and IE6 at work, but not FF3 and Safari at home. I can’t do much more testing than that, unfortunately, due to restrictions in what browsers I run in the office. I get mixed reports from my users.

    The pages affected are:

    http://www.rt2photo.com

    The drop down menu is on the “Portfolio” button, and any of the Portfolio pages run a flash gallery.

    Thoughts?

  • #2 / Jan 03, 2009 3:27am

    MeanStudios

    335 posts

    Where you are using swfobject to post your flash (like on: http://rt2photo.com/portfolio/individualandchild/)
    try replacing the javascript code with this:

    [removed]
            var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#181818");    
            fo.addVariable("preloaderColor", "0xffffff");
            fo.addVariable("xmlDataPath", "gallery.xml");    
            fo.addVariable("wmode", "transparent");
            fo.write("flashcontent");    
        [removed]

    Not sure if it will work, but we’ll see 😉.

  • #3 / Jan 03, 2009 9:29am

    smeg

    41 posts

    Codysplace:

    I’ve made the change to the individual and child portfolio page, and will check out of the menu overlaps when I hit the office on Monday, of course I can’t make it overlap badly.

    one oddness though - with the new code, the slideshow doesn’t autoplay - it stalls on the download flash page.

    Thoughts?

    Thank you for looking at this!

  • #4 / Jan 03, 2009 4:44pm

    MeanStudios

    335 posts

    I messed up, it should be:

    var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "7", "#181818");    
            fo.addVariable("preloaderColor", "0xffffff");
            fo.addVariable("xmlDataPath", "gallery.xml");    
            fo.addParam("wmode", "transparent");
            fo.write("flashcontent");

    Put that in between your “< script >” tags.  The line you need to add to all your swfobj code is this:

    fo.addParam("wmode", "transparent");

    .  That should make it so things can go over top of the flash.

  • #5 / Jan 04, 2009 12:26am

    Marcus Neto

    1005 posts

    Why not just use CSS?

  • #6 / Jan 04, 2009 12:29am

    MeanStudios

    335 posts

    I do not think you can use CSS to make flash not cover other elements without using the param I posted above.

  • #7 / Jan 04, 2009 12:37am

    Marcus Neto

    1005 posts

    Sorry, it is late and I responded without looking really hard at what the problem was. I went to the site and saw an overlapping problem with the menu where it was overlapping a navigation element and posted based on that. You are correct that the transparent code that you posted should fix the issue. Sorry…

    M.

  • #8 / Jan 04, 2009 12:46am

    MeanStudios

    335 posts

    No worries, I see what you mean though, it would be better to use CSS for the menu system then use all of that javascript.

  • #9 / Jan 07, 2009 12:15pm

    smeg

    41 posts

    I’m not particularly experienced when it comes to building sites from the code up - if CSS was a better way to do this, and someone could assist with some resources or links, I’d have no problem switching over.

    I’m going to try the updated code today - thanks for the assist!

  • #10 / Jan 08, 2009 7:27pm

    smeg

    41 posts

    I just wanted to publicly thanks CodysPlace.com for the excellent information - it resolved my problem!

    Thanks Cody!

  • #11 / Jan 08, 2009 7:53pm

    MeanStudios

    335 posts

    No worries mate!  I had the same thing happen to me a year ago or so and I know how frustrating it can be when it’s such an easy fix like that 😊.

    To answer your question above, I’ve been looking and I’m not sure there are CSS tabs that show that drop down menu without using a bit of javascript.  The following link might provide you a better solution than what you are using now: http://www.dynamicdrive.com/dynamicindex1/droptabmenu.htm
    Seems to be a bit cleaner.

    Best Wishes!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases