Habe doch noch eine weitere Frage.
Ich möchte aus 10 Bildern ein zufälliges Bild als Hintergrund
bis jetzt habe ich:
HTML-Code:
<html>
<head>
<title></title>
<?php
$anzahl = 10;
$num = rand($anzahl);
$bg = .$num.".jpg";
?>
<style type="text/css">
html {
background-size: cover !important;
-webkit-background-size: cover;
-o-background-size: cover;
-khtml-background-size: cover;
-ms-background-size: cover;
background: #F4F4F4 url(<?php echo $bg; ?>) no-repeat center center fixed;
}
</style>
</head>
<body>
</body>
</html>
Dabei passiert jedoch nichts.
Was muss ich ändern?
Vielen Dank für Hilfe!