Jump to main content
University Computer Centre
Extension Modules for websites
<h1>Image gallery</h1>
<?php
# Use of "highslide" effects
  require_once('php/hs.inc');
  echo hs_slideshow(array(                              # Images with text as caption
                        array('images/fotos/1.jpg''At the market'),
                        array('images/fotos/2.jpg''Karl Marx Monument'),
                        array('images/fotos/3.jpg''former Cammann weaving mill - oldest high-rise building in the city'),
                        array('images/fotos/4.jpg''Villa Esche')),
                    'popup',   # style
                    # Properties:
                    array('intervall' => 8000,          # change every 8 seconds
                          'dimming' => 0.5,             # darken the background
                          'img_style' => 'width:200px'# thumbnail 150 pixels wide
                          'div_style' => 'background-color:#eef;width:204px;padding:0.5em'# caption also 150 pixels wide
                          'more_text' => '4 images of Chemnitz')   # reference to "more images"
                    );
  echo '<br clear="both" />';
?>

Show output with this program code