Help with Active X script error in my HTML

I am trying to create a menu bar that will change color when you mouse over. When I test it in IE I am getting a warning that IE restricted this page from running scripts or Active X Control.


This is the code that is being blocked:

<tr>
        <td><a href="#2"><img SRC="images/Slice03.gif" width="94" height="22" border="0" onmouseover="this.src='images/Slice03_over.gif';" onmouseout="this.src='images/Slice03.gif';"></a></td>
        <td><a href="#3"><img SRC="images/Slice04.gif" width="85" height="22" border="0" onmouseover="this.src='images/Slice04_over.gif';" onmouseout="this.src='images/Slice04.gif';"></a></td>
        <td><a href="#4"><img SRC="images/Slice05.gif" width="118" height="22" border="0" onmouseover="this.src='images/Slice05_over.gif';" onmouseout="this.src='images/Slice05.gif';"></a></td>
        <td><a href="#5"><img SRC="images/Slice06.gif" width="115" height="22" border="0" onmouseover="this.src='images/Slice06_over.gif';" onmouseout="this.src='images/Slice06.gif';"></a></td>
        <td><a href="#6"><img SRC="images/Slice07.gif" width="83" height="22" border="0" onmouseover="this.src='images/Slice07_over.gif';" onmouseout="this.src='images/Slice07.gif';"></a></td>
      </tr>


Any suggestions on a different solution is fine. I just don't want users to get that warning so I want to make it legit.
calitechAsked:
Who is Participating?
 
Dave BaldwinFixer of ProblemsCommented:
You won't get that warning when you run it from a web server, just when you run it as a local file in IE.  That's just Microsoft trying to protect you from yourself.  It's their dumb idea.  It will work fine in Firefox or Chrome or when you run it from a web server.
0
 
calitechAuthor Commented:
thanks
0
 
calitechAuthor Commented:
Thanks again.I guess I should have tested by uploading it. LOL
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome, thanks for the points.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.