te*******@yahoo.com (yawnmoth) wrote in message news:<a0**************************@posting.google. com>...
I'm trying to write a script to make images fade in and out using the
varrious CSS attitrubes that browsers use for that purpose. In an a
tag, surrounded an image, I pass to the fade function the variable
this, and when I try to edit the style on that variable, I get an
error "object.style has no properties". Why wouldn't it? And what
can I do to fix it? Here's the page / code:
http://www.frostjedi.com/terra/dev/test.html
thanks Daniel and Richard! :)
now i have another similar problem...
I'm specifying the color of some text using a CSS class, and
javascript seems to be unaware of it. specifying the color via
style="whatever' in the a tag fixes the problem, but i don't to do
that. so how can i access those CSS attributes that aren't defined
via style?
Here's a webpage demonstrating the problem:
http://www.frostjedi.com/terra/dev/test2.html
If you move your cursor over the HTML 4.01 valid link, and then move
it away, you'll get a pop up demonstrating that javascript is unaware
of the CSS-defined color.