Those are made in Javascript indeed. First one is a pretty basic hand-made function that does the switching, second one appears to use a jQuery "coda slider" for the cute looking animations.
How to make a coda slider
here and a
demo.
Nothing too complicated but if you're unfamiliar with Javascript you might wanna consider hiring someone to do it. I'd personally recommend to get your hands dirty and try for yourself though.