actually, object.style.backgroundColor


use the humback or camelback or whatever the term is for CSS properties in DHTML.   So, for a style element named foo-goo-zoo, this becomes fooGooZoo in DHTML


http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/backgroundcolor.asp?frame=true
is one decent ref for this stuff

Doug

-----Original Message-----
From: Ewok [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 1:26 PM
To: CF-Talk
Subject: Re: css idiot question

try this syntax....

td1.style.background=''

i always catch myself using css syntax in js style changes too : )

  ----- Original Message -----
  From: Tony Weeg
  To: CF-Talk
  Sent: Wednesday, June 02, 2004 12:22 AM
  Subject: css idiot question

  maybe its just too late, but why does this div not change background and
  font color, when mouseover'ed

  <div
  style="background:#530000;width:100%;height:100%;"

  
  >   id="td1">

  New Applicant

  </div>

  thanks!

  ....tony

  r e v o l u t i o n w e b d e s i g n
  [EMAIL PROTECTED]
  www.revolutionwebdesign.com

  its only looks good to those who can see bad as well
  -anonymous
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to