まあ、これはAjaxを使用して行うことができます。実際、Jquery を使用するとかなり簡単です。私がお勧めするのは、さまざまな「セクション」をページに分割することです。
つまり、たとえば、印刷ページのマークアップのみを含む print.html ページがあり、Web ページもモーション ページも同じです。(マークアップのみ = 「メイン画像領域、一部のコピー、および画像の短いタイトルを持つ選択領域」、 no <html>
、<head>
または<body>
タグは、実際にはページの「セグメント」を作成しているためです。
メイン ページ コンテナーのマークアップは、id content3 と content4 を持つ現在の div が空になることを除いてほぼ同じです (そこにページを挿入するためです。実際、これら 2 つの div をページ セグメントに外注し、それらをa <div id='dynamic'></div>
(セグメント内のアイテムの配置をより適切に制御できるため、より良い)。
ここから先は、jquery についてある程度の知識があることを前提としていますので、わからないことがあれば調べたり質問したりしてください。
各リンク (web / print / motion) に「load_segment」のクラスと web / print / motion の ID を持たせることができます。便宜上、作業の一部を自動化するために、ID に上で説明したページ セグメントと同じ名前を付けます (もちろん .html 拡張子は付けません)。
これが完了したら、jquery スクリプトを含めて、次のようなことを行います。
<script>
$(function(){ // shorthand document.ready, ensures dom is loaded before starting
$('.load_segment').click(function(){ // binds a click event handler to your links
var page = $(this).attr("id") + '.html'
/*
here is why we named our id the same as our page segments, we auto generate
filenames, and thus only need to write this code once for all 3 links. you could
even add more later and as long as you have the corresponding html file segment
it will still work all the same
*/
$.get(page,function(segment){
// perform ajax request, fetch page, and then execute function
$("#dynamic").html(segment);
// the segment is inserted in the dynamic div created above.
}); //end ajax request
}); // end .load_segment click event
}) // end of jquery document.ready
</script>
各セクションの番号付きリンクについては、セグメント内に上記のような埋め込み ajax fetcher を作成して (各セグメントに jquery を再度含める必要はありません)、各ページに「サブセグメント」を作成することもできますが、ページが成長する場合、長期的には少し複雑になるリスクがあります。