change background color with page refresh (lavalair)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    lol whats going on here arent we going off topic , need help with tht css friends to make it work

    Comment


      #17
      you should be able to work it out mirror .... its not hard ;)

      Comment


        #18
        Originally posted by something else View Post
        lol 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 <?=
        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 mirror View Post
        lol whats going on here arent we going off topic , need help with tht css friends to make it work
        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. ;)
        <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

        Comment


          #19
          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;
          }
          WHAT M I MISSING HERE

          Comment


            #20
            Line
            PHP Code:
            background: <?php echo $rand_background?>;
            write like
            Code:
            background: $rand_background;
            Because all that is in $blah = " ... already and it should display.
            <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

            Comment

            Working...
            X