function show(page) {
var html = "";
switch (page) {
case "home":
html = 'All the stuff of the page ';
break;
case "about":
html = 'All the stuff of the pahe';
break;
case "contact":
html = "This is the contact page<br />...";
break;
}
document.getElementById('container').innerHTML = html;
}
「about」リンクは about に、「contacts」リンクは連絡先に移動します。1 つのリンク/ボタン/画像のみを使用してこれを機能させる方法。1 つのボタンがすべてを循環します。ここでは、「ホーム」リンクの代わりに「左ボタン」を使用してみましょう。リンクを無限に循環し続ける必要があります。