Welcome to this forum. I hope you learn a lot while you are here. I must say that I think that phillip m. is correct...I learned "the hard way" that you can get more out of this forum if you follow the rules...but in order to follow the rules, you have to know them. If you read and follow the posting guidelines, you will have faster results with people more willing to help you.
Anyway, to help speed this process up, and to prevent a double posting of the same question, Here is where you can find an example of what I believe you are looking for.
I believe that both http://www.dynamicdrive.com
are just 2 of the many great resources available to you. You can also find most of your answers by doing a simple search of just about any search engine.
Hope this helps,