DIV overlapping .SWF

Discussion in 'CSS' started by Whitey, Feb 19, 2009.

  1. #1
    Hey guys.

    I am designing a Wordpress theme for video sharing and the posts page will have a Youtube video embedded in it.

    I have options like "Share", "Embed", "Rate" etc that once clicked, opens a popup DIV that has content in it. The popup works like I want it to, but the embedded Youtube video is shown over the top of the popup DIV.

    Here's the code on single.php:
                <div id="entry_player_container">
    <div id="popupDiv_link">
      <p>Use the link below to share this page with your friends or paste it for later use.</p>
      <br />
      <p><input type="text" value="<?php the_permalink() ?>" size="40" class="popupDiv_txt" /></p>
      <br />
      <a href="javascript:setVisible('popupDiv_link')" style="text-decoration: none"><strong>Close</strong></a>
    </div>
    <div id="popupDiv_rate">
      <p>Like this episode? Rate it from 1 to 5 so other users can enjoy!</p>
      <br />
      <p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p>
      <br />
      <a href="javascript:setVisible('popupDiv_rate')" style="text-decoration: none"><strong>Close</strong></a>
    </div>
                <div id="player_holder">
                    <?php 
                    // check for a video
                    $video = get_post_meta($post->ID, 'Video', $single = true);
                    ?>
                    <?php // if there's a video
                    if($video !== '') { ?>
                    <?php echo $video; ?>
                    <?php } // end if statement
                    // if there's not a video
                    else { echo 'THUR IZ NO VIDEO!'; } ?>
                </div>
    Code (markup):
    And here's the CSS for the popup DIV:
    #popupDiv_link, #popupDiv_rate {
        background-image: url(images/player_bg.png);
        background-repeat: none;
        position: absolute;
        visibility: hidden;
        width: 561px;
        height: 312px;
        top: 176px;
        padding: 10px;
    }
    Code (markup):
    Like I said, the popup comes up but the content cant be seen because the embedded Youtube video overlapps it so I need a way for the popupDIV to show OVER the Youtube video.

    Here's where it's happening btw:
    http://nullusimprimis.com/beta/?p=12

    Click on the buttons below the player and you should see what I mean.

    Thanks in advance :D
     
    Whitey, Feb 19, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    To the object element, add <param name="wmode" value="opaque">. To the embed element, add wmode="opaque".

    cheers,

    gary
     
    kk5st, Feb 19, 2009 IP
  3. Whitey

    Whitey Active Member

    Messages:
    1,386
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Worked a treat, thanks mate :)
     
    Whitey, Feb 19, 2009 IP