mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
I did a nono and randomized the background. Works
This commit is contained in:
@@ -34,11 +34,23 @@ foreach($dir as $files){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$bg = array('bg1.jpg', 'bg2.jpg', 'bg3.jpg', 'bg4.jpg', 'bg5.jpg' ); // array of filenames
|
||||||
|
|
||||||
|
$i = rand(0, count($bg)-1); // generate random number size of the array
|
||||||
|
$selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:fb="http://ogp.me/ns/fb#">
|
xmlns:fb="http://ogp.me/ns/fb#">
|
||||||
<head>
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
<!--
|
||||||
|
.bgimage{
|
||||||
|
background: url(./static/<?php echo $selectedBg; ?>) no-repeat;
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</style>
|
||||||
<?php include("php/header.php"); ?>
|
<?php include("php/header.php"); ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ body{background:#000; margin:0; }
|
|||||||
.channel{padding: 7px; display: inline-block; font-weight: bold; color: #C4C4C4 !important;font-size: 18px;}
|
.channel{padding: 7px; display: inline-block; font-weight: bold; color: #C4C4C4 !important;font-size: 18px;}
|
||||||
.channel:hover{color:#ed207f !important;}
|
.channel:hover{color:#ed207f !important;}
|
||||||
.bgimage{
|
.bgimage{
|
||||||
background-size: 180%; background-repeat: no-repeat; background-position: center center; background-color: #000; background-image: url(bg5.jpg);
|
background-size: 180%; background-repeat: no-repeat; background-position: center center; background-color: #000; /*background-image: url(bg5.jpg);*/
|
||||||
-webkit-filter: blur(50px) brightness(0.8); -moz-filter:blur(50px) brightness(0.8); -ms-filter:blur(50px) brightness(0.8); -o-filter: blur(50px) brightness(0.8); filter: blur(50px) brightness(0.8);
|
-webkit-filter: blur(50px) brightness(0.8); -moz-filter:blur(50px) brightness(0.8); -ms-filter:blur(50px) brightness(0.8); -o-filter: blur(50px) brightness(0.8); filter: blur(50px) brightness(0.8);
|
||||||
position: absolute; top: 0px; left: 0; width: 100%; height: 100%;
|
position: absolute; top: 0px; left: 0; width: 100%; height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user