Issues inserting a SWF on HTML

Discussion in 'HTML & Website Design' started by jscieza, Jul 4, 2010.

  1. #1
    Hello,

    I'm trying to insert a SWF (728x180) on HTML. The code I'm using for this is:

    <div style="width:728px; height:90px; float:right">
    <object width="728" height="180">
    <param name="movie" value="http://www.peru.com/Advertisers/bcp/20100630/728x180_desplegable.swf">
    <param name="wmode" value="transparent">
    <embed src="http://www.peru.com/Advertisers/bcp/20100630/728x180_desplegable.swf" wmode="transparent" width="728" height="180">
    </embed>
    </object>
    </div>
    Code (markup):
    And here are the results:

    Firefox 3.6.6
    Inactive (no mouse over): http://img808.imageshack.us/img808/7/inactiveff.png
    Active (mouse over): http://img805.imageshack.us/img805/4093/activeff.png
    ISSUE: labels, textboxes and button are over my SWF when the SWF should be over those objects.

    IE8
    Inactive (no mouse over): http://img690.imageshack.us/img690/4719/inactiveie8.png
    Active (mouse over): http://img130.imageshack.us/img130/5725/activeie8.png
    ISSUE: When active, the SWF isn't being fully displayed.

    Any advice is welcome.

    Thank you,
    Jonathan
     
    Last edited: Jul 4, 2010
    jscieza, Jul 4, 2010 IP
  2. NPSF3000

    NPSF3000 Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1) You don't want the wmode to be transparent - it takes CPU and your not using it. Set it to window.

    http://kb2.adobe.com/cps/155/tn_15523.html

    2) If this doesn't fix the problem, simply give it a high z-index.
     
    NPSF3000, Jul 4, 2010 IP
  3. digitalchat

    digitalchat Peon

    Messages:
    302
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Quoted from http://flash-video-player.blogspot.com/2009/04/flash-object-and-embed-tag-part-two.html
    From the above explanation, I suggest you set wmode to be window or opaque.
     
    digitalchat, Jul 4, 2010 IP
  4. jscieza

    jscieza Active Member

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #4
    jscieza, Jul 4, 2010 IP
  5. NPSF3000

    NPSF3000 Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Set it to opaque:

    Set zindex to -1

    On mouseover use CSS to set zindex to 2

    #topAD {
    width:728px;
    height:90px;
    float:right;
    z-index = -1;
    }

    #topAD:hover {
    width:728px;
    height:180px;
    float:right;
    z-index = 2;
    }

    (Note: reading up on :Hover may have some issues in IE - test it. JS can also do this but not as nice).
     
    Last edited: Jul 4, 2010
    NPSF3000, Jul 4, 2010 IP