[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/libraries/highslide/examples/ -> mini-gallery.html (source)

   1  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
   2  <html>
   3  <head>
   4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   5  
   6  <title>Highslide JS</title>
   7  
   8  <!--
   9      1 ) Reference to the files containing the JavaScript and CSS.
  10      These files must be located on your server.
  11  -->
  12  
  13  <script type="text/javascript" src="../highslide/highslide-with-gallery.js"></script>
  14  <link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
  15  
  16  <!--
  17      2) Optionally override the settings defined at the top
  18      of the highslide.js file. The parameter hs.graphicsDir is important!
  19  -->
  20  
  21  <script type="text/javascript">
  22  hs.graphicsDir = '../highslide/graphics/';
  23  hs.align = 'center';
  24  hs.transitions = ['expand', 'crossfade'];
  25  hs.outlineType = 'rounded-white';
  26  hs.fadeInOut = true;
  27  hs.numberPosition = 'caption';
  28  hs.dimmingOpacity = 0.75;
  29  
  30  // Add the controlbar
  31  if (hs.addSlideshow) hs.addSlideshow({
  32      //slideshowGroup: 'group1',
  33      interval: 5000,
  34      repeat: false,
  35      useControls: true,
  36      fixedControls: 'fit',
  37      overlayOptions: {
  38          opacity: .75,
  39          position: 'bottom center',
  40          hideOnMouseOut: true
  41      }
  42  });
  43  </script>
  44  
  45  </head>
  46  
  47  <body>
  48  
  49  <!--
  50      3) Put the thumbnails inside a div for styling
  51  -->
  52  <div class="highslide-gallery">
  53  <!--
  54      4) This is how you mark up the thumbnail image with an anchor tag around it.
  55      The anchor's href attribute defines the URL of the full-size image.
  56  -->
  57  <a id="thumb1" href="../images/gallery1.jpg" class="highslide" onclick="return hs.expand(this)">
  58      <img src="../images/gallery1.thumb.jpg" alt="Highslide JS"
  59          title="Click to enlarge" />
  60  </a>
  61  
  62  <!--
  63      5 (optional). This is how you mark up the caption. The correct class name is important.
  64  -->
  65  
  66  <div class="highslide-caption">
  67      Caption for the first image. This caption can be styled using CSS.
  68  </div>
  69  
  70  
  71  <!--
  72      6) Put the subsequent thumbnails in a hidden container. The thumbnailId parameter ensures
  73      these thumbnails zoom back out to the right thumbnail when closed.
  74  -->
  75  <div class="hidden-container">
  76      <a href="../images/gallery2.jpg" class="highslide" onclick="return hs.expand(this, { thumbnailId: 'thumb1' })"></a>
  77      <div class="highslide-caption">
  78          Caption for the second image.
  79      </div>
  80  
  81      <a href="../images/gallery3.jpg" class="highslide" onclick="return hs.expand(this, { thumbnailId: 'thumb1' })"></a>
  82      <div class="highslide-caption">
  83          Caption for the third image.
  84      </div>
  85  </div>
  86  
  87  </div>
  88  </body>
  89  </html>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7