View Single Post
Old May 24th, 2006, 3:07 AM   #7
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
As DaWei says, it's:
object.style.xxxx = "yyyy";
for styles and:
object.className = "zzzz";
for classes.

setAttribute is non-standard javascript, I believe.
Arevos is offline   Reply With Quote