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.

Random BG on page reload

Featured Replies

Hey WDF

 

I will require some assistance here, my way seemed not to work.

 

so what I plan on adding to my page is a script .JS and PHP both work for this

 

 

I want the script to change just one specific value at random

html{
background:url(../img/BG.jpg);
background-repeat:no-repeat;
min-width:1024px;
background-size:cover;
   width: 100%;
position: absolute;
top: 0;
left: 0;
}

 

obviously the Background bit should be changed and only that, I want the random image to still cover the entire browser. I've seen many instances where it changes the body background, but that's no good for my current project.

 

if anyone could post a full solution i'd appreciate it, also reps are a must :)

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.