[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Help with Active X script error in my HTML

Posted on 2012-09-11
4
Medium Priority
?
469 Views
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:

<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.
0
Comment
Question by:calitech
  • 2
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 38388083
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
 

Author Comment

by:calitech
ID: 38388212
thanks
0
 

Author Closing Comment

by:calitech
ID: 38388221
Thanks again.I guess I should have tested by uploading it. LOL
0
 
LVL 84

Expert Comment

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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

830 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