I'm inclined to keep this completely javascript-free.
This should be able to get you close to what you're asking for once implemented.
I'm inclined to keep this completely javascript-free.
This should be able to get you close to what you're asking for once implemented.