Macbook problem. I can't type or use the mouse!?

My white macbook ( i think it's the 2008 version), has been acting up lately. It will function fine for about a hour or so. But then it won't allow me to type anymore. And the mouse just stops working too for some reason. I'll try to scroll down with the mouse and it's like it gets own life. It... show more My white macbook ( i think it's the 2008 version), has been acting up lately. It will function fine for about a hour or so. But then it won't allow me to type anymore. And the mouse just stops working too for some reason. I'll try to scroll down with the mouse and it's like it gets own life. It starts dragging and highlighting stuff without me telling it to. And when I type it will won't allow me at first. But once I get a few words down it either deletes them or highlights them and deletes them. It is impossible to get anything done! Please let me know if you have a solution to this. I'll give points to the best answer.

Thanks!
2 answers 2