[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/libraries/highslide/examples/ -> gallery-floating-caption.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.wrapperClassName = 'dark borderless floating-caption';
  26      hs.fadeInOut = true;
  27      hs.dimmingOpacity = .75;
  28  
  29      // Add the controlbar
  30      if (hs.addSlideshow) hs.addSlideshow({
  31          //slideshowGroup: 'group1',
  32          interval: 5000,
  33          repeat: false,
  34          useControls: true,
  35          fixedControls: 'fit',
  36          overlayOptions: {
  37              opacity: .6,
  38              position: 'bottom center',
  39              hideOnMouseOut: true
  40          }
  41      });
  42  </script>
  43  
  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  <!--
  55      4) This is how you mark up the thumbnail image with an anchor tag around it.
  56      The anchor's href attribute defines the URL of the full-size image.
  57  -->
  58  <a href="../images/gallery1.jpg" class="highslide" onclick="return hs.expand(this)">
  59      <img src="../images/gallery1.thumb.jpg" alt="Highslide JS"
  60          title="Click to enlarge" />
  61  </a>
  62  
  63  <!--
  64      5 (optional). This is how you mark up the caption. The correct class name is important.
  65  -->
  66  
  67  <div class="highslide-caption">
  68      Caption for the first image.
  69  </div>
  70  
  71  
  72  <!-- Repetionion of the above -->
  73  <a href="../images/gallery2.jpg" class="highslide" onclick="return hs.expand(this)">
  74      <img src="../images/gallery2.thumb.jpg" alt="Highslide JS"
  75          title="Click to enlarge" /></a>
  76  
  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)">
  82      <img src="../images/gallery3.thumb.jpg" alt="Highslide JS"
  83          title="Click to enlarge" /></a>
  84  
  85  <div class="highslide-caption">
  86      Caption for the third image.
  87  </div>
  88  
  89  </div>
  90  </body>
  91  </html>


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