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

実行結果

How to Auto Caption Images Using MooTools | 設置サンプル

ハニートースト

ハニートースト@アボガドダイニング Platinum Lounge

アボカドたっぷしのってますが、れっきとしたデザートです。ハニートーストの上にバニラアイスが乗っていて、その上にアボガドがぱらぱらと。アボカドっぽくなくて、どちらかといえば栗のような味がしました!

設置サンプルのソース

<!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>MooTools Auto Captioning Images | 設置サンプル</title>
      <link rel="stylesheet" href="/content/lib/global.css" type="text/css" media="all" />
      <!-- JS -->
      <script type="text/javascript" src="/content/lib/mootools/mootools-1.2-core-yc.js"></script>
      <script type="text/javascript" src="/content/lib/mootools/sr-auto-caption-1.0.js"></script>
      <!-- CSS -->
      <style type="text/css">
         img.captioned { padding:5px 0; }
         div.figure { width:240px; text-align:center; border:5px solid #333; background-color:#333; margin:5px; float:left; }
         p.caption { padding:0; margin:0; color:#fff; font-size:11px; font-weight:bold; }
         div.box { width:510px; background-color:#CBC0AA; margin:10px 5px; padding:10px; }
         div.box div.figure { margin-right:15px; }
         div.box div.author { font-size:.8em; text-align:right; }
      </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="wrap">
         <h1><a href='http://sixrevisions.com/tutorials/mootools-tutorials/how-to-auto-caption-images-using-mootools/'>How to Auto Caption Images Using MooTools</a> | 設置サンプル</h1>
<!-- CODE -->
<div class="cf">
   <img class="captioned" src="http://farm4.static.flickr.com/3514/3274514408_1800118ded_m.jpg" title="アボカド シーザーサラダ" width="240" height="180" />
   <img class="captioned" src="http://farm4.static.flickr.com/3509/3273696567_ebf4ed4381_m.jpg" title="アボカド刺" width="240" height="180" />
</div>
<div class="box">
   <img class="captioned" src="http://farm4.static.flickr.com/3316/3273696493_570fdd0ee5_t.jpg" alt="ハニートースト" width="100" height="75" />
   <p><strong>ハニートースト@アボガドダイニング Platinum Lounge</strong></p>
   <p>アボカドたっぷしのってますが、れっきとしたデザートです。ハニートーストの上にバニラアイスが乗っていて、その上にアボガドがぱらぱらと。アボカドっぽくなくて、どちらかといえば栗のような味がしました!</p>
   <div class="author">by <a href="http://www.flickr.com/photos/22559849@N06/3273696493/" title="ハニートースト@アボガドダイニング Platinum Lounge by php_javascript_room, on Flickr">php_javascript_room, on Flickr</a></div>
</div>
<!-- / CODE -->
      </div><!-- div#wrap -->
   </body>
</html>