# DHTML and Flash

**URL:** https://forum.kirupa.com/t/dhtml-and-flash/18432
**Category:** flash
**Created:** [April 16, 2003, 6:19pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432 "2003-04-16T18:19:49Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![undefined](https://avatars.discourse-cdn.com/v4/letter/u/7feea3/32.png) [@undefined](https://forum.kirupa.com/u/undefined)
#### Post date: [April 16, 2003, 6:19pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/1 "2003-04-16T18:19:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 16, 2003, 8:58pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/2 "2003-04-16T20:58:47Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 16, 2003, 10:17pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/3 "2003-04-16T22:17:38Z")

</div>

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](http://www.metrodiesel.com/wix2.html)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 16, 2003, 10:37pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/4 "2003-04-16T22:37:47Z")

</div>

> 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

```php
<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

```php
<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>

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 16, 2003, 11:06pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/5 "2003-04-16T23:06:18Z")

</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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 1:32am UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/6 "2003-04-17T01:32:58Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 2:40am UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/7 "2003-04-17T02:40:35Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 2:27pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/8 "2003-04-17T14:27:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 5:36pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/9 "2003-04-17T17:36:43Z")

</div>

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

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

```

Right before this

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

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 5:55pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/10 "2003-04-17T17:55:40Z")

</div>

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

Undefined:) :beam:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 6:08pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/11 "2003-04-17T18:08:06Z")

</div>

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](http://www.metrodiesel.com/nelson.html)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 8:05pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/12 "2003-04-17T20:05:35Z")

</div>

> …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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 17, 2003, 9:10pm UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/13 "2003-04-17T21:10:49Z")

</div>

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](http://www.metrodiesel.com/wixfilters.html)

☹

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [April 18, 2003, 3:06am UTC](https://forum.kirupa.com/t/dhtml-and-flash/18432/14 "2003-04-18T03:06:54Z")

</div>

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.
