タロットカードストーリープラン(仮称)!!

このエントリーをはてなブックマークに追加
 正直、遊び程度にしかならないと思うが、暇だからスクリプトを書いてみた(JavaScript)。
プラウザの更新ボタンで、新しいパターン。要素の名前を変えるにはELEMENTS配列の書き換えね。

/************************ここから****************************/
<HTML>
<HEAD><TITLE>サンプル</TITLE></HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
POSITION = new Array("現在","未来","過去","援助","敵対","結末");
ELEMENTS = new Array("至誠(正)","治癒(正)","結合(正)","節度(正)",
"慈愛(正)","生命(正)","知恵(正)","開放(正)","勇気(正)","清楚(正)",
"公式(正)","変化(正)","誓約(正)","創造(正)","理性(正)","幸運(正)",
"信頼(正)","秩序(正)","厳格(正)","庇護(正)","寛容(正)","意見(正)",
"善良(正)","調和(正)","至誠(逆)","治癒(逆)","結合(逆)","節度(逆)",
"慈愛(逆)","生命(逆)","知恵(逆)","開放(逆)","勇気(逆)","清楚(逆)",
"公式(逆)","変化(逆)","誓約(逆)","創造(逆)","理性(逆)","幸運(逆)",
"信頼(逆)","秩序(逆)","厳格(逆)","庇護(逆)","寛容(逆)","意見(逆)",
"善良(逆)","調和(逆)");
for (i=0;i<6;i++){
elements = ELEMENTS[Math.floor(Math.random() * 48)];
document.writeln(POSITION[i]+";"+elements+"  ");
}
// -->
</SCRIPT></BODY></HTML>
/***********************ここまで*****************************/

 暇つぶしにどうぞ。