This example kind of sounds like what you are looking for. If not, can you provide a rough outline of what you are looking for? It’s okay if it doesn’t work, just make a comment or two explaining your vision and someone should be able to get it working for you.