配列要素を移動させるには
<html>
<head>
<title>Sample</title>
</head>
<body>
<script type="text/javascript"><!--
colorName = ["黒色","青色","赤色","紫色","緑色","水色","黄色","白色"];
item = colorName.shift();
document.write("取り出した要素:",item,"<br>");
document.write(colorName,"<br>");
colorName.unshift("金色");
document.write(colorName,"<br>");
// --></script>
</body>
</html>
説明などは本書を参考にしてください。