I thought I'd share this- as I have had very little contact with the way websites are developed, and so I've come up with my own. I'd be interested to know how other sites manage the look and feel, and updating.
My website is www-belconnen-subs.com.au
My aim in writing the code was to make something which was quick and easy to add new pages, and also Q & E to change the look and feel of the whole site. I didn't want to have scripts which operated on a whole heap of html pages.
I chose to use ASP as I was comfortable with the technology, and I didn't want to go to great lengths to learn a new language. (I have touched ASP.NET but did not have any .Net development tools).
I started by coding all the pages using client side javascript, but had some feedback that there were some people viewing who did not have any sort of javascript available, so I changed it all over to server side.
Here's the source code for one page:
Code: Select all
<html lang="en">
<head>
<title>Subway Belconnen- The Signboard</title>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>
<%@ language="javascript"%>
<!--#include file="showpic.txt"-->
<%
var index;
var pictureList = new Array(
'24hr Chinese',
'Abbreviation',
'Accountant',
'Acronyms',
'Advice',
'Alarm Clock',
'Alarm Clocks',
'Alcohol',
'Alimony',
'Ambiguity',
'Ambivalent',
'Amnesia',
'Amnesia 2',
'Apple',
'April fools',
'Archery',
'Are you wise',
'Army Dentists'
);
writeMeta("Signboard Page 1");
writePicList(pictureList);
%>
<script src="showpic.js"></script>
</head>
<body background="bglogo.gif" onload="showPicture(0);">
<%
writeNavigation("Signboard");
writeBoardLinks(1);
writeAllPics();
%>
</body>
</html>
pictureList is an array of all the photos showing on the page.
writeNavigation shows the top part of the navigation. In this case, the "Signboard" link will not be an active link.
writeBoardLinks writes the links for the 70+ pages which have signboards. The "1" indicates that the "1" link will not be active.
writeAllPics displayes the pictures.
So if I change anything in the way the website is displayed, I only have to change in one place.
The longest part about creating a new page is creating named pictures. I could have just numbered them, but naming helps me to sort them out, and it helps a little to know if I've posted the same one twice.
So I've created a site which, despite having a lot of pages, is extremely easy to maintain.