onmouseover image does not change in IE6

This may be a simple question but could someone enlighten me as to how to change an image (menu button) in IE6? It works fine in Mozilla but nothing happens in IE. Here is the code:

<div id="welcomeMenu">
      <a href="schools/index.html"><img name="imageflip2" onMouseOver="src='Images/Menu/SchoolsOn.png'"     onMouseOut="src='Images/Menu/SchoolsOff.png'" src="Images/Menu/SchoolsOff.png" alt="" height="25" width="75" border="0"></a>

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


This may elaborate more precisely than i can do here so its better go to this link to find an online tutorial.


By Nab
Have you tried putting "this." in front of src in your attribute?

<a href="schools/index.html"><img name="imageflip2" onMouseOver="this.src='Images/Menu/SchoolsOn.png'"     onMouseOut="this.src='Images/Menu/SchoolsOff.png'" src="Images/Menu/SchoolsOff.png" alt="" height="25" width="75" border="0"></a>
I think it does't metter if you write "this" or not as its already inline. There is no error in that code of MulaG. It works for ie. I used my images and checked.

By Nab
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

MulaGAuthor Commented:

Thanks guys but I've tried .this and it doesn't work. Also went to the tutorial link and still no joy. I'm confused as to how Nabsol got it working in IE using the same code and it fails for me? Is this anything to do with me running the webpage locally?


Actualy i used images of that site. icon1 and icon2 and i put those images into images/menu folder and written this code and it works. You may try this


<title>Untitled Document</title>
<SCRIPT language=javascript src="mycode.js" type=text/javascript></SCRIPT></head>

<div id="welcomeMenu">
<a href="schools/index.html">
<img name="imageflip2" onMouseOver="src='Images/Menu/icon1.gif'" onMouseOut="src='Images/Menu/icon2.gif'" src="Images/Menu/icon2.gif" alt="" height="25" width="75" border="0"></a>


By Nab

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
When you are using xhtml, then use lowercase onmouseover and onmouseout. and put a / at the end of the image tag: />

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.