Hi guys,
I have little problem: I change some element style with setStyle on
click event, when you reclick I want to all element return with the
default state.
Now I use some like this script:
- at the fist time
$('element').setStyle('background','black')
- and for return at the default state
$('element').setStyle('background','')
this script work fine and assigns default CSS state but not works in
IE because all microsoft browsers assign blank CSS value.
I try to use this method (originaly color is white)
- at the fist time
$('element').setStyle('color','black')
- and for return at the default state
$('element').setStyle('color','whiite')
Now work fine with all element and all browser but if the element is a
link (a element) the css pseudo-classes not work correctly (for
example, after change you don't see the CSS a:hover effects).
Someone knows one way to resolve this problem? Maybe exist the way to
assign default css style with one function? (like: $$
('html').setDefaultStyles() ; // :P)
if someone wants to see the code the page is:
http://www.nettn.com/preview/nettunodev/phoneapp.asp
Thanks a lot
P.S. Sorry for my english! I'm italian!