"Thanks in advance and i request you to provide me with code and some reference sites where i can download and edit according to my requirments"
Is not how this site works. You have to do some work and then, if and when you get stuck, you come here and ask a specific question about that issue. No one is going to give you complete code - why should they?
I'd start with jquery
] and see if they have something similar to what you want.