Hey,

Thanks.....

I tried the this.style.border-left=  but didnt try the this. without the
'-'....

Kind Regards,



Mark Stephenson
New Media Director
Evolution Internet
T: 0870 757 1631
F: 0870 757 1632
W: www.evolutioninternet.co.uk
E: [EMAIL PROTECTED]


WARNING:
-------------------------------
The information contained in this document and attachments is confidential
and intended only for the person(s) named above.  If you are not the
intended recipient you are hereby notified that any disclosure, copying,
distribution, or any other use of the information is strictly prohibited.
If you have received this document by mistake, please notify the sender
immediately and destroy this document and attachments without making any
copy of any kind.

AVIS IMPORTANT:
-------------------------------
Les informations contenues dans le present document et ses pieces jointes
sont strictement confidentielles et reservees a l'usage de la (des)
personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez
avise que toute divulgation, distribution, copie, ou autre utilisation de
ces informations est strictement prohibee.  Si vous avez recu ce document
par erreur, veuillez s'il vous plait communiquer immediatement avec
l'expediteur et detruire ce document sans en faire de copie sous quelque
forme.




-----Original Message-----
From: charlie griefer [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2003 17:51
To: CF-Talk
Subject: Re: OT: CSS - How to do this


Mark Stephenson - Evolution Internet writes:

> Hey,
>
> When a user puts their mouse over a td i want the left borderline to be
> red....
>
> onMouseover="style.border-left= 'red thin solid';"
>
> Is what i thought would do it....
>
> It works for style.border   but i want only the left
>
> I am sure it is something silly that i am missing....

When using JavaScript to modify css values, you don't use dashes...replace
them with camelHump notation.  e.g. border-left becomes borderLeft,
font-size becomes fontSize, etc.

What you're looking for is:  onmouseover="this.style.borderLeft = 'red 1px
solid';"

(i also recommend the onmouseover, onmouseout, etc (event triggers) be all
lowercase...this will make your eventual transition to XHTML much smoother)
:)

hth,
charlie

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to