var p=document, t=p.all||p.getElementsByTagName('*'), i=0; while(d=t[i++] && (d.className=='myclass' ? d.style.color='red' : 1));