NO CMS サイトでこのアイデアを思いつきました... 約 50 枚の画像があり、一度にすべて表示することはできません。SOアイデアは、最初の15を表示してから次をクリックし、それらを非表示にして次の15を表示するなどです。
ajax またはウィット php と css でそれを行うのは難しいですか?
カウントし、隠しクラスを追加し、?
またはそれを行う別の方法... phpまたはjQueryで、クラス「画像」を使用してdivの最初の15要素を取得し、クラスを追加する方法:showimage、次に[次へ]ボタンをクリックします:すべてのクラスshowimageを削除し、画像16~30
コードは次のようになります:
<div id="gallery2"> <!-- Gallery de photos -->
<a href="ia/new_01.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_01.jpg&h=<?php echo $size ?>" title="Cliquer pour agrandir"
alt="Pont Neuf - Ile de la Cité - Paris - France - Aquarelle <br> Conception personnelle"/></a>
<a href="ia/new_02.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_02.jpg&h=<?php echo $size ?>" title="Cliquer pour agrandir"
alt="Studebaker Hawk - Concept rétro <br> Conception personnelle"/></a>
<a href="ia/new_03.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_03.jpg&h=<?php echo $size ?>" title="Cliquer pour agrandir"
alt="Corvette - Concept rétro <br> Conception personnelle"/></a>
<a href="ia/new_04.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_04.jpg&h=<?php echo $size ?>" title="Cliquer pour agrandir"
alt="Thunderbird - Concept rétro <br> Conception personnelle"/></a>
<a href="ia/new_05.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_05.jpg&h=<?php echo $size ?>" title="Cliquer pour agrandir"
alt="Les autos de mon père <br> Conception personnelle"/></a>
何度も何度も.... 50枚の画像