PHP & JavaScript Room :: 設置サンプル

実行結果

Highslide JSの設置サンプル

Highslide JS

話題のクリスピー・クリーム・ドーナツ(*・ω・*)

Highslide JS

新宿アルタの地下にあるクマ顔のケーキ(*・ω・*)

設置サンプルのソース

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta http-equiv="Content-Language" content="ja" />
      <meta http-equiv="Content-Script-Type" content="text/javascript" />
      <meta http-equiv="Content-Style-Type" content="text/css" />
      <meta http-equiv="imagetoolbar" content="no" />
      <title>Highslide JS の設置例</title>
      <script type="text/javascript" src="/content/lib/highslidejs/js/highslide.js"></script>
      <script type="text/javascript">
         hs.graphicsDir = '/content/lib/highslidejs/graphics/';
         window.onload = function() { hs.preloadImages(5); }
      </script>
      <style type="text/css">
         * {
             font-family: Verdana, Helvetica;
             font-size: 10pt;
         }
         .highslide {
            cursor: url("/content/lib/highslidejs/graphics/zoomin.cur"), pointer;
             outline: none;
         }
         .highslide img {
            border: 2px solid gray;
         }
         .highslide:hover img {
            border: 2px solid silver;
         }

         .highslide-image {
             border-bottom: 1px solid white;
         }
         .highslide-image-blur {
         }
         .highslide-caption {
             display: none;
             border-bottom: 1px solid white;
             font-family: Verdana, Helvetica;
             font-size:11px;
             padding: 5px;
             background-color: maroon;
             color:#fff;
         }
         .highslide-loading {
             display: block;
            color: white;
            font-size: 9px;
            font-weight: bold;
            text-transform: uppercase;
             text-decoration: none;
            padding: 3px;
            border-top: 1px solid white;
            border-bottom: 1px solid white;
             background-color: black;
         }
         a.highslide-credits,
         a.highslide-credits i {
             padding: 2px;
             color: #fff;
             text-decoration: none;
            font-size: 10px;
         }
         a.highslide-credits:hover,
         a.highslide-credits:hover i {
             color: white;
             background-color: gray;
         }
         .highslide-display-block {
             display: block;
         }
         .highslide-display-none {
             display: none;
         }
      </style>
   <link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
   <body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP &amp; JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
      <div id="highslide-container"></div>
      <h1><a href='http://vikjavev.no/highslide/'>Highslide JS</a>の設置サンプル</h1>
      <p>
         <a id="thumb1" href="/content/img/pic1.png" class="highslide" onclick="return hs.expand(this)">
            <img src="/content/img/pic1-thumb.png" alt="Highslide JS" title="クリックで拡大表示" width="120" height="90" />
         </a>
      </p>
      <div class='highslide-caption' id='caption-for-thumb1'>
         話題のクリスピー・クリーム・ドーナツ(*・ω・*)
      </div>
      <p>
         <a id="thumb2" href="/content/img/pic2.png" class="highslide" onclick="return hs.expand(this)">
            <img src="/content/img/pic2-thumb.png" alt="Highslide JS" title="クリックで拡大表示" width="120" height="90" />
         </a>
      </p>
      <div class='highslide-caption' id='caption-for-thumb2'>
         新宿アルタの地下にあるクマ顔のケーキ(*・ω・*)
      </div>
   </body>
</html>