----------------------------------------------------- WORDS|WORDSWORDS|WORDSWORDSWORDSWORDSWORDS|WORDSWORDS WORDS|WORDSWORDS|WORDSWORDSWORDSWORDSWORDS|WORDSWORDS WORDS|WORDSWORDS|WORDSWORDSWORDSWORDSWORDS|WORDSWORDS ----------------------------------------------------- WORDSWORDSWORDS|WORDSWORDS|WORDSWORDSWORDS|WORDSWORDS WORDSWORDSWORDS|WORDSWORDS|WORDSWORDSWORDS|WORDSWORDS WORDSWORDSWORDS|WORDSWORDS|WORDSWORDSWORDS|WORDSWORDS ----------------------------------------------------- WORDSWORDS|WORDS|WORDSWORDSWORDSWORDSWORDS|WORDSWORDS WORDSWORDS|WORDS|WORDSWORDSWORDSWORDSWORDS|WORDSWORDS WORDSWORDS|WORDS|WORDSWORDSWORDSWORDSWORDS|WORDSWORDS -----------------------------------------------------
$("div.article-item a").each(function() {
switch (this.className) {
case "Design" : this.style.background = "#f4e8a8"; break;
case "Technology" : this.style.background = "#b2d4a7"; break;
case "Features" : this.style.background = "#fff"; break;
case "Strategy" : this.style.background = "#c4d8dd";
break; default: break;
}
});
It appears UX is using JQuery, so I'm just piggy-backing. But presumably the folks at UX have actual control over their content, and would just add colors to the CSS file.« Older Saul Bass + Tron = Retro Tron... | Designer Alex George has creat... Newer »
This thread has been archived and is closed to new comments
posted by Dr. Twist at 3:46 PM on March 26, 2010 [1 favorite]