Hi,
By simply referencing the index number of the elements in an array, you'll get their content and not their position in the array.
Eg.
<html>
<body>
<script language="javascript">
var myProjects = new Array("index.htm","01.htm","02.htm","03.htm","04.h tm");
switch (n)
{
case 0:
document.write(myProjects[0]);
break;
case 1:
document.write(myProjects[1]);
break;
case 2:
document.write(myProjects[2]);
break;
case 3:
document.write(myProjects[3]);
break;
case 4:
document.write(myProjects[4]);
break;
default:
break;
}
</script>
</body>
</html>
HTH,
Lillu
The Purple Couch
http://www.geocities.com/lillamarta