PDA

View Full Version : rollovers and default security settings


paul6253
05-05-2005, 12:53 AM
I want to create background color changes using onMousover events but
the following code :



<UL Onmouseover = "this.style.setAttribute('background','#99AAAF')"
Onmouseout = "this.style.setAttribute('background','transparent')"

...

</UL>


will be blocked by IE unless the user authorizes the scripts?!
This will alarm (and turn away!) most users from further viewing.

The only way around this that I can think of is
using :link,:hover,etc pseudoclasses but
these only work for links,no?

Any fixes?
Thanks

Basscyst
05-05-2005, 01:05 AM
Hello,

In my experience a user will only get that error message if they open your html file from their local machine. When it is served up from a web server the restriction will no longer occur.

Basscyst

glenngv
05-05-2005, 06:33 AM
The only way around this that I can think of is
using :link,:hover,etc pseudoclasses but
these only work for links,no?

Any fixes?
Thanks
There is a fix (http://www.vladdy.net/demos/iepseudoclassesfix.html) for that.

paul6253
05-07-2005, 12:03 AM
Thanks for the fix...it's horrible tho.
The whole idea of using Jscript objects and .htc includes is disgusting
...just so I can be compatible with the most buggy browser ever which
78% or more of the ignorant population uses. :rolleyes: takes brains
later