# Reappearing/appearing div problem

**URL:** https://forum.kirupa.com/t/reappearing-appearing-div-problem/169602
**Category:** Uncategorized
**Created:** [November 17, 2005, 4:06pm UTC](https://forum.kirupa.com/t/reappearing-appearing-div-problem/169602 "2005-11-17T16:06:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RabBell](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rabbell/32/340_2.png) [@RabBell](https://forum.kirupa.com/u/RabBell)
#### Post date: [November 17, 2005, 4:06pm UTC](https://forum.kirupa.com/t/reappearing-appearing-div-problem/169602/1 "2005-11-17T16:06:05Z")

</div>

ok first heres the javascript

function MM\_HideTheAd(){  
var theadvert;

```
theadvert = document.getElementById('thead');
theadvert.style.display = "none";

```

}

function MM\_ShowTheAd(){  
var theadvert;

```
theadvert = document.getElementById('thead');
theadvert.style.display = "block";

```

}

and the html

> \<body onload=“MM\_HideTheAd()”\>  
> \<div class=“thead” id=“thead”\>  
> \<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0)” width=“400” height=“300”\>  
> \<param name=“movie” value=“flashadvert/smaller\_\_non\_\_continousrun.swf” /\>  
> \<param name=“quality” value=“high” /\>  
> \<embed src=“flashadvert/smaller\_\_non\_\_continousrun.swf” quality=“high” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” type=“application/x-shockwave-flash” width=“400” height=“300”\>\</embed\>  
> \</object\>  
> \</div\>

The flash movie is hidden at first but then at a certain point in the movie it calls the ShowTheAd function and appears…but only in IE, not in Firefox

anyone any ideas why???
