Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Thursday, March 19th, 2009

Time Event
5:43p
Javascript, CSS and UI
Hello, I am doing some UI work and I wonding if there is a way to send "this" value to a funtion without having to give every item a unique id

in other works, I can put this inline on mouse over = this.style.borderTopColor='#0B226B';


but I would prefer to do something like
on mouse over = this.changeColor();


And then the function changeColor() contains ...style.borderTopColor='#0B226B';


Its going to be crazy if I have to give each item its own id. *js code not exactly right to get through the filters

<< Previous Day 2009/03/19
[Calendar]
Next Day >>
About LiveJournal.com
Image