lol whats going on here arent we going off topic , need help with tht css friends to make it work
change background color with page refresh (lavalair)
Collapse
X
-
Originally posted by something else View Postlol if you have got such a large .css of 400 lines then it would be far better off doing it on a variables anyway rather than 400 echo`s or <?=
Originally posted by mirror View Postlol whats going on here arent we going off topic , need help with tht css friends to make it work<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
okay arnage bro help me out here , i tried this
in core.php what next its still not working
PHP Code:$background_colors = array('#282E33', '#25373A', '#164852', '#495E67', '#FF3838');
$count = count($background_colors) - 1;
$i = rand(0, $count);
$rand_background = $background_colors[$i];
$blah = "<style type=\"text/css\">
* {
margin: 0;
padding: 0;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.boxed {
width: 99%;
margin-bottom: 3px;
border: 1px solid #000000;
}
.boxedTitle {
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
height: 18px;
padding: 0 0 0 2px;
background: ".$thm[1]." url(images/".$thm[2].") repeat-x;
}
.boxedTitleText {
font-size: 11px;
color: ".$thm[3].";
}
.boxedContent {
padding: 2px 2px 2px 2px;
background: <?php echo $rand_background; ?>;
font-size: $fsize;
}
Comment
Comment