Web Hosting Talk







View Full Version : I guess this is done with css? A message appear and fade away automatically?


lexington
09-05-2008, 01:50 PM
Hello, I would like to have it so if a user clicks a button, a temporary message will appear and then go away automatically. It would be cool if it faded away but if that is too complex it can just disappear. Could you provide a working example? Thanks.

Madman340
09-05-2008, 10:51 PM
Do you mean like a windows message box? or just a type of "fake" box?

lexington
09-05-2008, 10:56 PM
Not sure what you mean but basically I would like an onclick event where if a user clicks a button a message will temporarily appear and go away. I would like to display messages such as "Page loaded" and stuff like that just for cosmetic reasons.

kb241
09-06-2008, 01:41 AM
definitely some type of javascript I would think.

ThatScriptGuy
09-06-2008, 01:45 AM
Take a look at jquery. One of the default things it provides is fade/appear transitions..

yuniar
09-06-2008, 06:33 AM
Yep, you can use jQuery or Scriptaculous. Both have nice effect library. I prefer jQuery though, very lightweight.