Flash graphic floats above fixed elements when scrolling page.

Posted on 2008-06-25
Medium Priority
Last Modified: 2013-11-19
OK... The only real way I know how to describe this to you is simple by showing you.  Navigate to the following link in anything but Firefox or IE6 and scroll down on the page.


As you can see, I have a navigation bar that is fixed to the top of the page.  But when you scroll the page down, the flash graphic slides over the top of the navigation bar.  Firefox is the only browser that the page displays correctly in.  IE6 does not display the navigation bar fixed to the top of the page, so the problem is not evident in IE6.  But in IE7, Opera, and Safari, this problem occurs.  To see the CSS I'm using to build all this, go to the link below.

Question by:josephdaviskcrm
  • 3
  • 3
LVL 43

Expert Comment

by:David S.
ID: 21871927
Actually the problem is occurring in FF3 too.

You need to set the wmode attribute:

Yeah, IE6 doesn't support position:fixed. There are several workarounds for it around.

Author Comment

ID: 21872001
Ok... so I added <param name="wmode" value="transparent" /> to my flash object on the page.  That did fix the issue in IE7, but it remains in Opera, Safari, and more than likely in FF3 also.  Can you give me any further assistance?
LVL 43

Expert Comment

by:David S.
ID: 21872028
You need to set the wmode attribute on the <embed> too.
<embed src="Flash/Home.swf" quality="high" bgcolor="#ffffff" width="682" height="236" 
name="Home" align="middle" wmode="transparent"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" base="." />

Open in new window

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 21874598
That didn't seem to help any more.  I'm still having the issue with Opera and Safari.
LVL 43

Accepted Solution

David S. earned 2000 total points
ID: 21879048
You added the wmode attribute to the <object> instead of the <embed>? You need to move it to the <embed>.

Author Closing Comment

ID: 31470856
Awesome.  That worked. It now functions correctly in all browsers.  Thanks.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question