What is your background and programming ability? Are you fluent in Ruby, HTML, and javascript? Have you studied the SketchUp Ruby API docs and examples?
What I’m driving at is that many of us are reluctant to “do your homework for you” when you haven’t shown us any effort to do it yourself. Take a stab at it and then ask for help with specific issues you encounter in your code.