Need script to drive spider walk (2)

Hi guys
I am looking for a script (or a way to write a script) that allows me to drive the animation of a spider crawling by simply translating the main animation control.

thanks