<?php date_default_timezone_set('Europe/Moscow'); $h = date('H'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> body{ min-height: 100vh; background: url(img/img_dz/<?php echo floor($h / 6); ?>.jpg) no-repeat fixed; background-color: cover; } </style> </head> <body> <h1><?php echo $h; ?></h1> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more