se guendo _mitch
Esempio: avendo due selettori CSS:
.sottomin {
color: red;
}
.sopramin {
color: green;
}
<input type="text" ... class="sottomin" onkeyup='funzione';">
function funzione(){
if (this.value.length<60 && this.value.charAt(0)=='+')
this.className='sopramin';
else
this.className='sottomin';"
}