I am currently using javascript to incorporate CSS changes to freeze certain elements in my html page. In Firefox, I never get an ActiveX message, but in IE8 I get a message with the message "To protect your security, Internet Explorer limited this web page to running scripts or ActiveX controls that could access your computer." I accept it because of the javascript I have:
sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover);
Hangup effects still work in IE8 without clicking a warning button and activating ActiveX.
My questions: 1) Is there a way to change the javascript that I have for the freezing effects, so the ActiveX warning does not appear? 2) Is there any code to disable the ActiveX warning, since the website works fine in IE even with the warning?
thanks
source share