bgColor error. What am I doing wrong?

D

Don Lancaster

I set up a table...

<table
bgcolor=#FF9966
name=msSel
onmouseover="msSel.bgColor='#FFCC66'"
onmouseout="differentFunction ();"

mouseout is eventully supposed to do several things,
only one of which is to reset the single cell table
color. A shortened function would be

function differentFunction (){

msSel.bgColor="#FF9966" ;
// other stuff here
} ;

on mouseout, a msSEL not found error is returned from
inside differentFunction.

substituting "this.bgColor" neither returns an error
nor changes the color. There are other reasons later
for not using "this" instead of specific names.

Why the error?
What is the correction or workaround?




--
Many thanks,

Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: (e-mail address removed)

Please visit my GURU's LAIR web site at http://www.tinaja.com
 
K

Kevin Darling

Kevin Darling said the following on 4/25/2007 6:36 PM:



In that scenario? "this" doesn't refer to what you think it does. Test it :)

D'oh !! Yes, I know that. I posted very quickly before dinner and
mixed up editing two different answers. Shame on me!

Thanks for pointing it out :)

Kev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top