Still messing with stuff.
I’ve added a “change style” link on the top left. It lets you choose from 3 different styles for the site, and remembers what you chose via a cookie.
Why, you ask?
Because I can!…mwahahaha!

The boxed and Titanium Gold styles I grabbed from movablestyle.com I haven’t made any adjustments to them to cope with my warping of the standard Movable Type layout, so there might be some odd spacing and stuff. I’m not too bothered, ’cause I probably wont keep them there. I only grabbed them so that I had alternatives there for testing. I’ll probably design my own styles in the end.

It works perfectly in Firefox, Mozilla and IE, and mostly works in Konqueror (for some reason it doesn’t pick up the new style until you manualy reload the page). I haven’t tried any others though.

I must admit that in this exercise in frivolity, I used the demon language.
Yes, I implemented the selection and remembering code in PHP. I am ashamed.
But it was all I had to work with, seeing as how dealing with form submissions and cookies in a shell script whilst possible, is kinda masochistic, and it’s been too long since I’ve touched Perl for me to do it that way.
Besides, this sort of trivial thing is the one type of instance where PHP is actually an appropriate tool.

I’ll prolly replace it with JSP or something later anyway ;)

 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 1,125 bad guys.