A permanent card that becomes the top card of your library enters the battlefield (unless it went from the battlefield to the top of your library), so any enters-the-battlefield abilities will trigger and “as [this creature] enters the battlefield” abilities will apply. Similarly, a permanent card that stops being the top card of your library leaves the battlefield (unless it went from the top of your library to the battlefield directly).