※このページは書きかけです


解説/基礎編

Webページへの組み込み

script読み込み

<script src="staff/theaterconstructor.js"
 type="text/javascript" charset="shift_jis"></script>

シナリオ進行要素

<div id="forward">
 :
 :
</div>

シナリオ初期化要素

<button id="reset">はじめから</button>

画像ボックス要素

<div id="frame"></div>

文章ボックス要素

<div id="msg"></div>

画像切り替え効果

設定方法/IEのfilter使用

new Theater({
  filter: 1,
  scenario:{
    function(){
      this.act({
        img: "img/sample0.gif",
        msg: "ようこそ"
      });
    },
    function(){
      this.act({
        img: "img/sample1.gif",
        msg: "インスタンス生成時の画像切り替え効果指定です。"
      });
    },
    function(){
      this.act({
        img: "img/sample2.gif",
        msg: "ようこそ",
        filter: ""
      });
    }
  }
}

※このページは書きかけです


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS