# Onmouseover/out function not working in IE :@

**URL:** <https://forum.kirupa.com/t/onmouseover-out-function-not-working-in-ie/236236>\
**Category:** Uncategorized\
**Created:** [August 18, 2007, 8:07pm UTC](https://forum.kirupa.com/t/onmouseover-out-function-not-working-in-ie/236236 "2007-08-18T20:07:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingscooty](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kingscooty](https://forum.kirupa.com/u/kingscooty)\
**Post date:** [August 18, 2007, 8:07pm UTC](https://forum.kirupa.com/t/onmouseover-out-function-not-working-in-ie/236236/1 "2007-08-18T20:07:21Z")

</div>

Ahhhh!! I’ve spent a good few hours trying to figure out why this code wont work in IE.  
It’s making use of the ExternalInterface from flash 8.0 and works perfectly in Firefox.

```php

function richMedia(val) {
     if (document.getElementById("flashLeft") && document.getElementById("flashRight")) {
         if (val) {
            document.getElementById("flashLeft").richMedia(1);
            document.getElementById("flashRight").richMedia(1);
         } else {
            document.getElementById("flashLeft").richMedia(0);
            document.getElementById("flashRight").richMedia(0);
         }
     }
}

```

It’s called by:

```php

onmouseover="richMedia(true);" onmouseout="richMedia(false);

```

Any ideas? 🙂
