Tuesday, 15 April 2014

html5 - HTML wildcard character -



html5 - HTML wildcard character -

i have images inserted jquery slideshow. these images added using image src. wondering if there wildcard character can utilize add together images automatically rather adding path manually each image. example:

<div class="frame"> <img src="images/img_1.jpg" /> <img src="images/img_2.jpg" /> <img src="images/img_3.jpg" /> </div>

is there way can add together images automatically without having type source each image or there way can utilize wildcard character automatically selects images name img_*?

assuming have imgs named img0.jpg img4.jpg

if add together code, output 5 imgs.

<?php ( $i = 0; $i < 5; $i++ ) { echo "<img src='imgs/img$i.jpg'>"; } ?>

html html5 wildcard

No comments:

Post a Comment