Silverlight 3: HTML dropdown menus fall behind Silverlight

If when you hover over the dropdown menus in your website and find that they are disappearing behind your Silverlight media elements in the page making it impossible to click on the hidden menu items, there is a simple solution. You need to activate the ‘windowless’ mode for all Silverlight media elements which are within reach of your dropdowns.
To do this just add the following parameter to your object markup for the Silverlight element.

<param name="windowless" value="true"/>

Your object markup should now look something like this:

 <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
            width="950px" height="665px">
            <param name="windowless" value="true"/>
            <param name="source" value="URI_TO_SILVERLIGHT_FILE" />
            <param name="onError" value="onSilverlightError" />
            <param name="minRuntimeVersion" value="3.0.40624.0" />
            <param name="autoUpgrade" value="true" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration: none">
                <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
                    style="border-style: none" />
            </a>
        </object>
        <iframe id="_sl_historyFrame" style="visibility: hidden; height: 0px; width: 0px; border: 0px"></iframe>

One thought on “Silverlight 3: HTML dropdown menus fall behind Silverlight

  • Hi, I came across this blog post while looking for help with fixing Microsoft Silverlight. I have recently switched internet browser from Chrome to Microsoft IE 6. After the change I seem to have a problem with loading sites that use Microsoft Silverlight. Every time I go on a website that needs Microsoft Silverlight, my browser does not load and I get a “npctrl.dll” error. I cannot seem to find out how to fix the problem. Any help getting Microsoft Silverlight to function is very appreciated! Thanks

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s