You haven't actually asked a question, you have provided no background, there is no inclination of what functionality you require or for what purpose.
There is no idea of what you have done so far or any code you have tried out first.
And still you think people will be able to help!
However,
see here[
^], where your needs have been addressed I think.
Do try to give more information, more people will help you that way.