Help with Active X script error in my HTML

Posted on 2012-09-11
Last Modified: 2012-09-11
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:

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

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.
Question by:calitech
    LVL 82

    Accepted Solution

    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.

    Author Comment


    Author Closing Comment

    Thanks again.I guess I should have tested by uploading it. LOL
    LVL 82

    Expert Comment

    by:Dave Baldwin
    You're welcome, thanks for the points.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now