What's the proper syntax, in JavaScript, for changing css via conditional statements?

outlisiot

New Member
here is what I've got and I know it isn't right. Basically, I'm trying to say, "If the height of the div called three is 445, change the background image to this jpg."\[code\]if ( ".three" == height:"445" ) {".three.style.background-image"= 'url(images/2.jpg)'};\[/code\]Thanks in advance!
 
Back
Top