My life...in blog form. How wonderful.

Saturday, January 18, 2003

Woohoo! All of the pages have been "adapted" to a color-changing scheme. How do I do it? Advanced technical know-how, that's how. Actually, it's just a mix of ASP and stylesheets. You see, every element of each page--both colors and graphics--is controlled by the stylesheet. By having five different stylesheets and five sets of images (thank goodness there are only two per page), the ASP code merely rotates in a different stylesheet each time the page is accessed.

It's interesting because all of the images were originally created in grayscale and then "colorized" in Paint Shop Pro to create the various color schemes. Supposedly, stylesheets allow you to overlay a slightly transparent color over another, thereby chanigng the color below. In theory, this would work for my grayscale images since the stylesheet considers them to be background images, anyway. So, just call in the background image, then overlay any color I want over it, making it 50% transparent or so. Cool! I should try that.

Anyway, I hope everyone thinks the color-changing is nifty. On the old version of the site, only the background image changed, and there were only two of them, and if your monitor didn't have high enough contrast, you could even tell that there was a background image there. I think this color-scheme changing is a lot more effective.

0 Comments:

Post a Comment

<< Home