Sometimes one wishes to display a message for some time before removing it in some way (in my case fading). When implementing this idea, a problem arises: how long should the message remain fully visible on the screen before fading (fading is fast)?
I am certain that the time should be in some way related to the length of the message (you can read a "Hello World" message in 5 seconds but not the first paragraph of a book). Perhaps an initial delay should also be added.
I have constructed a formula that works so far (see below), but I would like additional advice or better yet, experimental results (if any are available).
My current forumula (result is in milliseconds):
500 + 100 * length
window.onMessageReadByUser = message.fadeOut– Rahul♦ Jan 26 '12 at 14:29