Solved

Flash graphic floats above fixed elements when scrolling page.

Posted on 2008-06-25
6
251 Views
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.

http://josephdavis-portfolio.no-ip.org/botkinsrealty/home.aspx

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.

http://josephdavis-portfolio.no-ip.org/botkinsrealty/css.txt
0
Comment
Question by:josephdaviskcrm
  • 3
  • 3
6 Comments
 
LVL 42

Expert Comment

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

You need to set the wmode attribute:
http://forums.devshed.com/css-help-116/z-index-flash-file-getting-element-to-overlay-on-flash-505401.html

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

Author Comment

by:josephdaviskcrm
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?
0
 
LVL 42

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

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

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

Accepted Solution

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

Author Closing Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now