/[clipping]/bg_color.class.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /bg_color.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sat Nov 3 10:36:20 2001 UTC (22 years, 4 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
display last n lines from log file

1 dpavlin 1.1 <?php
2    
3     class Bg_Color {
4    
5     var $col1 = "#f0f0f0";
6     var $col2 = "";
7     //var $curr = $this->col1;
8     var $curr;
9    
10     function colors($col1,$col2="") {
11     $this->col1 = $col1;
12     $this->col2 = $col2;
13     }
14    
15     function bgcolor() {
16     if ($this->curr == $this->col1) {
17     $this->curr = $this->col2;
18     } else {
19     $this->curr = $this->col1;
20     }
21     if ($this->curr != "") {
22     return ' bgcolor="'.$this->curr.'"';
23     }
24     }
25     }
26    
27     ?>

  ViewVC Help
Powered by ViewVC 1.1.26