The variation of zeros of certain orthogonal polynomials