If I wanted a div to show for a particular amount of time (say 5 secs) and then disappear (display:none; will work), how would I go about doing it? Would this be better executed in JS or will php do the job just as well?
@Jarrod1937Nov 03.2010 — #Php is a server side language. Once the output is sent from it, you can't change it, unless you are using a client side language like javascript. So, yes, javascript would be your best/only choice here. You can probaby just do something like:
Edit: Quick note, but be sure to be careful, design it so that user agents without javascript support don't just see a big div in their way (unless that is your intention).