This is a migrated thread and some comments may be shown as answers.

[Solved] Menu Item z-index and Flash Control Issue

9 Answers 118 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hardy Wang
Top achievements
Rank 1
Hardy Wang asked on 03 Mar 2011, 02:37 AM
Hi all,

I used MVC Menu control to render my menus, but I also have a Flash control right below the menu. Everytime when I pull the menu item down, they are always behind the Flash control.

I tried to nest Flash control inside a <div> and set CSS of the DIV to have z-index: 100, it does not see to work. I also tried to nest entire menu inside a div and set style to have z-index: 0, it does not work.

Anybody has clue, what shall I do?

Hardy

9 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 03 Mar 2011, 09:02 AM
Hello Hardy,

You need to set the wmode property of the Flash movie to transparent. For example:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
        <param name="movie" value="..." />
        <param name="wmode" value="transparent" />
        <object type="application/x-shockwave-flash" data="...">
            <param name="wmode" value="transparent" />
        </object>
    </object>

If you are using SWFObject or another Javascript library for showing the Flash, you should find the correct way to set the wmode property, e.g.

    swf = new SWFObject(..........);
    swf.addParam("wmode", "transparent");


Generally, there is no need to define specific z-index styles, but if you already use them for other reasons, you must ensure that the Menu component is in a higher stacking context than the Flash movie.

http://blogs.telerik.com/atanaskorchev/posts/09-07-02/z-index_demystified.aspx


Best wishes,
Dimo
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Hardy Wang
Top achievements
Rank 1
answered on 08 Mar 2011, 03:02 AM
Thanks, it works!
0
Richard
Top achievements
Rank 1
answered on 04 Nov 2011, 12:37 AM
I'm having the same problem but the flash component is on a YouTube page via an iframe:
<iframe width="270" height="222" src="http://www.youtube.com/embed/1NKi4O-Al20" frameborder="0" allowfullscreen></iframe>

How can I get the menu above to show on top of the YouTube video?
0
Dimo
Telerik team
answered on 04 Nov 2011, 11:07 AM
Hello Richard,

Since you don't have access to the flash movie inside the iframe, the only thing you can do in this case is to hide the iframe when the Menu opens.

Alternatively, you can contact YouTube for additional advice.

.ClientEvents(ev => ev.OnOpen("hideFrame").OnClose("showFrame"))

<iframe id="youtubeFrame"></iframe>

function hideFrame(e) {
    $("#youtubeFrame").css("visibility", "hidden");
}
 
function showFrame(e) {
    $("#youtubeFrame").css("visibility", "");
}


Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Richard
Top achievements
Rank 1
answered on 06 Nov 2011, 09:52 PM
Thanks Dimo,

I've decided to just move the movie down so it doesn't interact with the video at all.  Having it disappear when dropping the video just didn't seem like a good idea.  I'll contact YouTube and post back here if I find out anything useful.

All the best,

Richard.
0
Dimo
Telerik team
answered on 07 Nov 2011, 08:34 AM
Hi Richard,

OK, let us know if there is an alternative workaround related to the YouTube video itself.

Kind regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Krasimir
Top achievements
Rank 1
answered on 09 Nov 2011, 06:03 PM
Hello Telerik team,
I have similar problem not with a flash content but with Silverlight content. Can you give me a hint how can I resolve it?
0
Dimo
Telerik team
answered on 09 Nov 2011, 06:15 PM
Hi Krasimir,

Please refer to

http://stackoverflow.com/questions/782415/displaying-html-divs-over-silverlight

http://duncanmackenzie.net/Blog/overlaying-html-over-silverlight


Best wishes,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Krasimir
Top achievements
Rank 1
answered on 10 Nov 2011, 10:31 AM
Thanks, it works!

<param name="Windowless" value="true" />
Tags
Menu
Asked by
Hardy Wang
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Hardy Wang
Top achievements
Rank 1
Richard
Top achievements
Rank 1
Krasimir
Top achievements
Rank 1
Share this question
or