DHTML and Flash

Right now, I’m working on a site and my menu is DHTML and on one of the pages I have a small flash section. The problem is that the menu is a drop menu and for some reason no matter what I set the z-axis too, the menu always appears behind the flash. So part of the menu is covered up. Does anyone know how to solve this problem???

I’d appreciate any help.

You could try to make your menu a layer, i believe it would work.

Not quite sure what you mean by making it a layer…Do you mean embedd it into the flash? Here is a sample page so you got an idea: www.metrodiesel.com/wix2.html

The following code creates a layer in html
If you need any help on how to do this just tell me!
Don’t be confused by the php i just didn’t know how else to post a script on this page

The below code goes between the head tags

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

The below text goes between the body tags

<div id="Layer" style="position:absolute; left:120px; top:152px; width:566px; height:1px; z-index:1"> 
  <p>Your script for you menu would go here</p>
</div>

If you want to know what exactly to do then download the attached file. I hope you don’t care but I downloaded the javascript files from your site, just to see if it works and it does. So I know 100% this will work, if you need more information let me know.

In my heirch.js file, I declared the menu as a layer and actually set the z pos to 5 and using the layer.css file, I set the flash level to 0. Even after this, it is still displaying below the flash. So I gave your recommendation a shot but again, it still displayed below the flash. Got any suggestions, I’m racking my brain right now…:hangover: I uploaded the page with your scripting so you can see what I mean.

I wonder if flash always is going to display on top because it is a plugin?

Between the the object tag of the flash file in the html document add this <param name=“wmode” value=“transparent”> below <param name=“quality” value=“high”>. This will make your movie transparent so you have to actually draw the background in flash. Post if any other problems.

What should I put in the object tag?? I don’t think it got posted.

Sorry I don’t know why it didn’t show up. I will put it under a php line but keep in mind that it isn’t php.

Put this

<param name="wmode" value="transparent">

Right before this

<param name="quality" value="high">

Thanks alot, you have no idea how much you’ve helped. If I can ever return the favor let me know.

Undefined:) :beam:

Unfortunately, after I checked that the menu was now on top I noticed something when I was scrolling down on another page that has a scrolling textbox in flash. It creates some sort of error in IE.

Also, it still doesn’t want to appear on top in Netscape. …Why can’t there be a set of standards for browsers???:-\

Here is the page: http://www.metrodiesel.com/nelson.html

…Why can’t there be a set of standards for browsers???

Yes i do agree, it does make it hard for web developers to do things they want when their is no set of standards. Also on your page i didn’t see any error on a flash text box, unless you didn’t give the correct link. If you can post that link. Also i will do some more research on that issue with NS but i don’t think i will find any answers soon.

Sorry, I’ve been trying to get the page up as quickly as possible and decided to change the nelson page and go in another direction. (The flash was overkill for something that simple.)

However, I’m still running into the problem on the other page I showed you earlier. http://www.metrodiesel.com/wixfilters.html

:frowning:

If you are talking about the problem with the menu and flash problem in Netscape I don’t know of any way to get around that. If this is not the problem then please tell me, because i don’t know what you meant in your last post.