Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Announcement Tutorial

Featured Replies

I am looking for a tutorial for a an Announcement style app.

 

I am using php and MySql and am guessing that I will need to use Javascript or MooTools or something similar.

 

I would like a div that displays a message when a user logs in, however the message will disappear when they click the x icon. No further messages will be displayed until I add a new one into the database.

 

I have tried googling, but don't know what this type of app/script woiuld be called.

 

Could somebody point me in the right direction please?

I wouldn't use Javascript. I would use PHP, so when they click on the close link it loads a script to create a cookie. Then the page with the announcement can check if the cookie exists or not, if it does, don't show the announcement, otherwise do.

 

You could use a MYSQL database but cookies are adequate. If you don't want the page to reload you'll need to use Ajax. Although you should be able to create cookies with basic Javascript.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.