[ create a new paste ] login | about

Link: http://codepad.org/7Tl0sJDK    [ raw code | output | fork ]

PHP, pasted on Feb 17:
1
2
3
4
5
6
7
    <?php
    $totalImages  = 38;

    for ($i = 1; $i <= $totalImages; $i++) {
       echo '<a href="images/barpics/' . $i . '.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/'. $i .'.jpg" width="xxx" height="xxx" /></a>';
    }
    ?>


Output:
1
    <a href="images/barpics/1.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/1.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/2.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/2.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/3.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/3.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/4.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/4.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/5.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/5.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/6.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/6.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/7.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/7.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/8.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/8.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/9.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/9.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/10.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/10.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/11.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/11.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/12.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/12.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/13.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/13.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/14.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/14.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/15.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/15.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/16.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/16.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/17.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/17.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/18.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/18.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/19.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/19.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/20.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/20.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/21.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/21.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/22.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/22.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/23.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/23.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/24.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/24.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/25.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/25.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/26.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/26.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/27.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/27.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/28.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/28.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/29.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/29.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/30.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/30.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/31.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/31.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/32.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/32.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/33.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/33.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/34.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/34.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/35.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/35.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/36.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/36.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/37.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/37.jpg" width="xxx" height="xxx" /></a><a href="images/barpics/38.jpg" class="fancybox" rel="gallery" title="click to enlarge"><img src="images/barpics/38.jpg" width="xxx" height="xxx" /></a>


Create a new paste based on this one


Comments: