PHP : echo message for a specified amount of time

前端 未结 6 2162
暗喜
暗喜 2021-01-23 09:34

I want to display a string \"Your status has been posted\" for something around 3 or so seconds than I want it to go away.

As of right now I have a news feed where the u

6条回答
  •  旧巷少年郎
    2021-01-23 10:21

    Unless you go for some weird "100 Continue" approach interleaved before you present your next web page you will need to do this in javascript.

    If this i to display for a period after they first see a webpage then you can have something like a This message will disappear and then add a script which is called from your tag's onLoad action which would (e.g.) sleep for three seconds and then set the content of that div to be empty.

提交回复
热议问题