The opponent will still switch out. Example, my Gengar was holding a red card and it used Mean Look on a Tentacruel. The Tentacruel used scald on my Gengar and it was forced to switch into a Dragonite. So in short No the Mean Look will not stop them from switching out. Same thing for the Eject Button except you will be forced out.
Source-Tested on Showdown