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

実行結果

Proto Flow | 設置サンプル

設置サンプルのソース

<!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>Protoflow | 設置サンプル</title>
      <link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
      <link rel="stylesheet" type="text/css" href="/content/lib/protoflow/site/prettify.css" />
      <link rel="stylesheet" type="text/css" href="/content/lib/protoflow/protoFlow.css" />
      <style type="text/css">
         div.captionHolder { font-size:12px; }
      </style>
      <script src="/content/lib/prototype/prototype-1.6.0.3.js" type="text/javascript"></script>
      <script src="/content/lib/scriptaculous/scriptaculous.js?load=slider" type="text/javascript"></script>
      <script src="/content/lib/reflection/reflection.js" type="text/javascript"></script>
      <script src="/content/lib/protoflow/protoFlow.js" type="text/javascript"></script>
      <script src="/content/lib/protoflow/site/prettify.js" type="text/javascript"></script>
      <script type="text/javascript">
         Event.observe(window, 'load', function() {
            prettyPrint();
            cf = new ProtoFlow($("protoflow"), {
               captions: true, 
               useReflection: true
            });
         });
      </script>
   <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="wrap">
         <h1><a href='http://blog.deensoft.com/2008/03/10/protoflow-first-preview-release/'>Proto Flow</a> | 設置サンプル</h1>
         <div id="bodyWrap">
             <div id="protoflow">
               <script type="text/javascript">
               /* Flickの写真を読み込み */
               var photo={
                  "http://farm4.static.flickr.com/3138/3032375214_5aedffaca0_m.jpg" : "サインがいっぱい@鳥小屋",
                  "http://farm4.static.flickr.com/3064/3031535599_2f8b454232_m.jpg" : "レバ刺@鳥小屋",
                  "http://farm4.static.flickr.com/3217/3031535573_6e541be249_m.jpg" : "明太子玉子焼き@鳥小屋",
                  "http://farm4.static.flickr.com/3223/3032375140_5eba53f7e9_m.jpg" : "モツ鍋@鳥小屋",
                  "http://farm4.static.flickr.com/3239/3032375082_fd66d11941_m.jpg" : "モツ鍋@鳥小屋",
                  "http://farm4.static.flickr.com/3151/3032375106_226d2a6d52_m.jpg" : "モツ鍋@鳥小屋",
                  "http://farm4.static.flickr.com/3055/3031535435_6af4618ea1_m.jpg" : "ハツ刺@鳥小屋",
                  "http://farm4.static.flickr.com/3068/3032375032_aab0a7b581_m.jpg" : "ハツ刺@鳥小屋",
                  "http://farm4.static.flickr.com/3171/3032374922_8fcb4ea43d_m.jpg" : "モツ鍋の〆@鳥小屋",
                  "http://farm4.static.flickr.com/3177/3032374882_7b7553fff5_m.jpg" : "モツ鍋の〆@鳥小屋",
                  "http://farm4.static.flickr.com/3243/3032374798_cec6385d35_m.jpg" : "ごちそうさま@鳥小屋"
               }
               for(var url in photo){
                  document.write("<img src='"+url+"' alt='"+photo[url]+"' />\n");
               }
               </script>
            </div>
         </div>
      </div>
   </body>
</html>