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

実行結果

設置サンプル

参照:QuickFlip 2: The jQuery Flipping Plugin Made Faster and Simpler

水平方向に回転(デフォルト)

サイトの紹介

PHP、JavaScript、スタイルシート、Webページ埋め込みによる音声・動画のストリーム配信方法など、サイト作成に役立つ実用的なプログラミング・テクニックを解説しています。

カードを裏返す

管理人の紹介

ブログ全盛期にWebサイトを運営するシーラカンスぶり。趣味は美味しい飲み屋さん探し。白モツが恋人です♥ そして、柄にもなく大のハムスター好き。あ、ペンギンも好きですよw

カードを裏返す

垂直方向に回転(vertical:true)

サイトの紹介

PHP、JavaScript、スタイルシート、Webページ埋め込みによる音声・動画のストリーム配信方法など、サイト作成に役立つ実用的なプログラミング・テクニックを解説しています。

カードを裏返す

管理人の紹介

ブログ全盛期にWebサイトを運営するシーラカンスぶり。趣味は美味しい飲み屋さん探し。白モツが恋人です♥ そして、柄にもなく大のハムスター好き。あ、ペンギンも好きですよw

カードを裏返す

設置サンプルのソース

<!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>設定サンプル</title>
      <link rel="stylesheet" href="/content/lib/global.css" type="text/css" />
      <!-- JS -->
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
      <script type="text/javascript" src="/content/lib/jquery/jquery.quickflip.js"></script>
      <script type="text/javascript">
         $(function(){
            $('.quickFlip').quickFlip();
            $('.quickFlip2').quickFlip({
                vertical : true
            });
      });
      </script>
      <!-- CSS -->
      <link rel="stylesheet" type="text/css" href="/content/lib/jquery/quickflip" />
      <style type="text/css">
         .quickFlip,
         .quickFlip2 {
            width: 320px; height: 240px;
             position:relative;
             margin:20px;
         }
         .blackPanel {
             position:absolute;
            background:#fff url('/content/img/ajax/flip-panel-brown.png') no-repeat 0 0;
         }
         .redPanel {
             position:absolute;
             background:#fff url('/content/img/ajax/flip-panel.png') no-repeat 0 0;
             color:#fff;
         }
         .quickFlip h3,
         .quickFlip2 h3 {
            margin:70px 20px 10px 20px; padding:0;
            font-size:120%;
         }
         .quickFlip p,
         .quickFlip2 p {
            margin:10px 20px 0 20px; padding:0;
            
         }
      </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>設置サンプル</h1>
         <p>参照:<a href='http://jonraasch.com/blog/quickflip-jquery-plugin'>QuickFlip 2: The jQuery Flipping Plugin Made Faster and Simpler</a></p>
<!-- CODE -->
         <h2>水平方向に回転(デフォルト)</h2>
         <div class="quickFlip">
            <div class="blackPanel">
               <h3 class="first quickFlipCta">サイトの紹介</h3>
               <p class="panel-content">PHP、JavaScript、スタイルシート、Webページ埋め込みによる音声・動画のストリーム配信方法など、サイト作成に役立つ実用的なプログラミング・テクニックを解説しています。</p>
               <p><a href="#" class="quickFlipCta">カードを裏返す</a></p>
            </div>
            <div class="redPanel">
               <h3>管理人の紹介</h3>
               <p>ブログ全盛期にWebサイトを運営するシーラカンスぶり。趣味は美味しい飲み屋さん探し。白モツが恋人です&hearts;&nbsp;そして、柄にもなく大のハムスター好き。あ、ペンギンも好きですよw</p>
               <p><a href="#" class="quickFlipCta">カードを裏返す</a></p>
            </div>
         </div>
         <h2>垂直方向に回転(vertical:true)</h2>
         <div class="quickFlip2">
            <div class="blackPanel">
               <h3 class="first quickFlipCta">サイトの紹介</h3>
               <p class="panel-content">PHP、JavaScript、スタイルシート、Webページ埋め込みによる音声・動画のストリーム配信方法など、サイト作成に役立つ実用的なプログラミング・テクニックを解説しています。</p>
               <p><a href="#" class="quickFlipCta">カードを裏返す</a></p>
            </div>
            <div class="redPanel">
               <h3>管理人の紹介</h3>
               <p>ブログ全盛期にWebサイトを運営するシーラカンスぶり。趣味は美味しい飲み屋さん探し。白モツが恋人です&hearts;&nbsp;そして、柄にもなく大のハムスター好き。あ、ペンギンも好きですよw</p>
               <p><a href="#" class="quickFlipCta">カードを裏返す</a></p>
            </div>
         </div>
<!-- CODE / -->
      </div>
   </body>
</html>