Continued gains in tech leave the Nasdaq near a 14-month high, while small-cap stocks shook off some of the weakness.