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
-
Well thats about for both, defining by user, retrieving from form, checking or setting defaults and writing onto database, and for reading from it and again checking and display it. All with ternary and loops, and thats how its gonna work, i will finalize it at the end of writing the script and design it, now its all in separate files out of the script.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 <?=
No, and only if you are waiting for someone to write it for you, now you should try to write it and if it doesn't go good post here what you have tried. All what it need is shuffle() or some kind of random. ;)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
WHAT M I MISSING HEREPHP 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