top left logo andrew buchan - my web corner
  • Home
  • About
  • Projects
  • Scripts
  • Lists
  • Photos

My scripts

Below are some scripts that I have been involved in.

Css and JavaScript form validation

CSS and JavaScript form validation screenshot small

This little script shows how to use a mixture of CSS and JavaScript to inform the users of any missing form fields.

The benefit of this is: the form is validated before it gets to the server, meaning your server and your server side scripts have less work to do.

Comments welcome.

JavaScript Menu

JavaScript Menu screenshot small

This is an example of how to call upon an external JavaScript file across multiple pages on your website.

The main benefit is: Any change you make to the .js file will take effect on all pages that call upon that file.

I wrote this in response to a thread on a forum I visit.

Check it out, Comments are always welcome.

Style Switcher

Style Switcher screenshot small

Style Switcher is a PHP script that lets your visitors change what css file your website uses.

They have been done before, and they will be done again, but it was my first attempt at making them, the code is very lightweight.

See a demo or Download Style Switcher.

RateMe

RateMe screenshot small

RateMe is a script that lets your visitors rate your pages.

Users can give a page a rating of 1-5, and when they rate a page some statistics appear giving information such as the number of votes that particular page has, total of the rates gained and the average rate.

See a demo or download RateMe.

Tell A Friend

Tell A Friend screenshot small

Tell A Friend is a small script that can be easily integrated into your existing website.

Once Tell A Friend is up and running all you have to do is add one line of code and your website visitors have the ability to "tell a friend". They click a link and an email is sent to the email address they specify.

Tell A Friend is written in PHP and JavaScript.

Logger

Logger code screenshot small

Logger v0.2 is a simple user membership system written in XHTML, PHP and MySQL.

The reason behind this is because I am a member of a lot of web/programming forums and a user membership system is one of the topics that constantly comes up.

I have designed Logger to be very semantical and without any CSS style rules. The reason for this was to make it easier for you to integrate the script into your current website. Logger validates at XHTML transitional 1.0.

View demo

0.2 Update: added duplicate username check

User friendly forms

User friendly forms screenshot small

Here are some user friendly forms.

I have detailed some techniques to show how you can make web forms more user friendly and accessible to your website visitors.

Validates to XHTML 1.0, uses CSS for some styling, JavaScript for form interaction.

Feel free to use any of the examples, simply view the source of the page.

Copyright 2007-2008 andrewbuchan.co.uk