if the bgc equals ffccc, or the bgc equals rgb(255,204,204) then set the backgroundColor to ccccff, if not, set it to ffcccc
cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-828-355-5544 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically, as a gold assayer would test gold. If you find they make sense, conform to your experience, and don't harm yourself or others, only then should you accept them.' From: runrunforest <craigco...@gmail.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Date: 05/13/2009 11:55 AM Subject: [jQuery] css syntax Hi, Can someone help me explain the meaning of these two lines var bgc = $(this).css('backgroundColor'); $(this).css({backgroundColor: bgc == '#ffcccc' || bgc == 'rgb(255, 204, 204)' ? '#ccccff' : '#ffcccc'});
<<inline: graycol.gif>>
<<inline: ecblank.gif>>