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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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

Reply via email to