Im not posting code here (move to appropriate place if required)
But here some excellent JS examples.
http://www.mredkj.com/
http://mredkj.blogspot.com/
JS examples
Moderator: General Moderators
Moderator: General Moderators