Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts

    z-index and flash-banner

    Hey,

    I have a problem with my flash banner. If I set its containing div with a z-index lower than my rest, it doesn't go underneath it. Is there some tricky trick that I'm unaware of with z-index and flash?

  • #2
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Yeah I've run across the same issues before. Z-index is tricky. Of course I'm assuming that you know that a lower z-index means that it will be farther back, as you've said. I personally don't know why this would be though, as it would make more sense if the lower the index the more on top an element would be. But I personally unfortunatly. Don't have any suggetions as I still haven't figured out to fix this flash issue. I would definatly be interested on how this is fixed. Anyone?

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    I found a solution: http://kb.adobe.com/selfservice/view...4201&sliceId=2

    However, I use javascript to load the flash movie and swdobject. How would I then incoorporate it?

    My code:
    Code:
    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("flash/headermov.swf", "headermov", "900", "200", "9", "#000");
    so.write("header"); //Div to write the flash content to
    // ]]>
    </script>
    Need to incoorporate this:
    Code:
    To edit an existing HTML page, add the WMODE parameters to the HTML code.
    
    Add the following parameter to the OBJECT tag:
    <param name="wmode" value="transparent">
    
    Add the following parameter to the EMBED tag: 
    wmode="transparent"

  • #4
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    I think, and correct me if i'm wrong, that you have to add the parameter to the object tag. aka:



    Code:
    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("flash/headermov.swf", "headermov", "900", "200", "9", "#000");
    so.addParam('wmode','transparent');
    so.write("header"); //Div to write the flash content to
    // ]]>
    </script>

  • Users who have thanked mwgriffin for this post:

    CaptainB (03-06-2009)

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    You were right - now it works and the flash is following the orders set with z-index! Thank you!

  • #6
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    glad to help.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •