Well that isn't hard to achieve ;)
you just need to call the message that will appear in the msg box when you click the object.
you can use it with ajax and call .txt files with the message or even have texts stored in variables of the objects.
You can check the current variable and add a choice for the player (yes/no).
when the message is over put the msg box and the message invisible.
it's important to add those objects in a separate layer that doesn't move around.