<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>うさのJavaScript講座 -  Blog館 -</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/" />
   <link rel="self" type="application/atom+xml" href="http://blog.usagi-js.com/atom.xml" />
   <id>tag:blog.usagi-js.com,2006://1</id>
   <updated>2006-10-04T14:53:19Z</updated>
   <subtitle>このサイトでは「うさのJavaScript講座」の情報をお届けしています♪</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.32-ja</generator>

<entry>
   <title>イメージでdivの表示・非表示を切り替える</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/10/showhide.html" />
   <id>tag:blog.usagi-js.com,2006://1.17</id>
   
   <published>2006-10-04T14:30:39Z</published>
   <updated>2006-10-04T14:53:19Z</updated>
   
   <summary>今回は、サンプルでもよくDLされている、イメージでdivの表示・非表示を切り替え...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="JavaScript de ブログ" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="31" label="DIV" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="20" label="レイヤー" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="29" label="表示非表示" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[今回は、サンプルでもよくDLされている、イメージでdivの表示・非表示を切り替える方法をこちらにはってみます。<br/>
イメージをクリックすると指定しているDiv内（ここではid指定）の表示状態をDivタグスタイル属性を変更し、非表示にしたり表示に戻したりしています。<br/>
<a href="http://blog.usagi-js.com">このブログTOP</a>の左下の「サンプルブログパーツ」にも適応してみました。こんな感じで利用するのも一つの手かもしれませんネ。<br/>
なお、ネスケの古いヴァージョンなどでは、getElementByIdが利用できませんのでdocument.layers["div名"]で呼び出してくださいね。他のヴァージョンとの互換性など、レイヤー全般に関するサンプルは<a href="http://usagi-js.com/">うさのJavaScript講座</a>のサンプル集８でご紹介しております。<br/><br/>

<script language="javascript">
<!--
//------------------------------------------------------------
//javascript by ＠うさ http://usagi-js.com/
//------------------------------------------------------------
var currentViewOnBody = true;
function ViewPartsOnBody(layerName)
{
 if (currentViewOnBody )
 {	
   //非表示
   document.getElementById(layerName).style.visibility="hidden";
   document.getElementById('imageArrowOnBody').src="http://usagi-js.com/images/arrowdown.gif";
   currentViewOnBody = false;
 }
 else
 {
   //表示
   document.getElementById(layerName).style.visibility="visible";
   document.getElementById('imageArrowOnBody').src="http://usagi-js.com/images/arrowup.gif";
   currentViewOnBody = true;
 }	
}
//-->
</script>
<img id="imageArrowOnBody" src="http://usagi-js.com/images/arrowup.gif" border="0" onClick="javascript:ViewPartsOnBody('samplePartsOnBody')" style="cursor:hand">←クリックしてみてネ♪
   <div id="samplePartsOnBody">
<font color="blue">この部分がDIV内です。</font></div>

<br/>ソースはこちら↓<br/>
<FORM name="sampleShowHideForm">
<TEXTAREA rows="3" cols="50" id="sampleShowHide" name="sampleShowHide" readonly>
<script language="javascript">
<!--
//------------------------------------------------------------
//javascript by ＠うさ http://usagi-js.com/
//------------------------------------------------------------
var currentViewOnBody = true;
function ViewPartsOnBody(layerName)
{
 if (currentViewOnBody )
 {	
   //非表示
   document.getElementById(layerName).style.visibility="hidden";
   document.getElementById('imageArrowOnBody').src="http://usagi-js.com/images/arrowdown.gif";
   currentViewOnBody = false;
 }
 else
 {
   //表示
   document.getElementById(layerName).style.visibility="visible";
   document.getElementById('imageArrowOnBody').src="http://usagi-js.com/images/arrowup.gif";
   currentViewOnBody = true;
 }	
}
//-->
</script>
<!--以下HTML部です-->
<img id="imageArrowOnBody" src="http://usagi-js.com/images/arrowup.gif" border="0" onClick="javascript:ViewPartsOnBody('samplePartsOnBody')" style="cursor:hand">←クリックしてみてネ♪
   <div id="samplePartsOnBody">
<font color="blue">この部分がDIV内です。</font></div>
</TEXTAREA>
<input type="button" value="選択" onclick="javascript:document.getElementById('sampleShowHide').select()" onkeypress="javascript:document.getElementById('sampleShowHide').select()">
</FORM>
]]>
      
   </content>
</entry>
<entry>
   <title>id値をテキストボックスに表示</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/10/id.html" />
   <id>tag:blog.usagi-js.com,2006://1.16</id>
   
   <published>2006-10-02T14:25:16Z</published>
   <updated>2006-10-04T14:50:49Z</updated>
   
   <summary>週末ふらっと海外で潜ってまいりました。（実はダイブマスターだったりするうさです。...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="JavaScript de ブログ" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="11" label="テキストボックス" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="28" label="マウスイベント" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[週末ふらっと海外で潜ってまいりました。<font color="gray">（実はダイブマスターだったりするうさです。）</font><br/>
普段よくボーイング747に乗るのですが、今回は757。行きはエコノミー（コーチ）で帰りはビジネスだったので、その座席配列をマウスイベントで表現してみることにします。<br/><br/>

サンプルでは、テキストにAタグを貼り、そのid値をテキストボックスに表示させています。AタグでなくてDIVタグなどでも動作します。ただし、テキストボックスに表示する場合、特に古いヴァージョンのブラウザなどgetElementById関数を利用できないブラウザもありますので、その場合は、"document.フォーム名.テキストボックス名"にてご利用くださいませ。フォームに関するサンプルは、<a href="http://usagi-js.com/">うさのJavaScript講座</a>のサンプル集４に入っています。<br/><br/>

<script language="javascript">
<!--
function ShowDescription(content)
{
	document.getElementById('sampleDescription').value = content.id;
}
function EraseDescription()
{
	document.getElementById('sampleDescription').value = "";
}
-->
</script>
<a href="#" id="Seat Business A" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="red">■</font></a>
<a href="#" id="Seat Business B" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="yellow">■</font></a>　
<a href="#" id="Seat Business C" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="green">■</font></a>
<a href="#" id="Seat Business D" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="blue">■</font></a>
<br/><br/>

<a href="#" id="Seat Coach A" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="red">■</font></a>
<a href="#" id="Seat Coach B" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="yellow">■</font></a>
<a href="#" id="Seat Coach C" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="green">■</font></a>　
<a href="#" id="Seat Coach D" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="blue">■</font></a>
<a href="#" id="Seat Coach E" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="orange">■</font></a>
<a href="#" id="Seat Coach F" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="#FFCC66">■</font></a>
<br/><br/>

<input id="sampleDescription" type="text" name="sampleDescription" size="20" readonly>

<br/>ソースはこちら↓<br/>
<FORM name="sampleShowIdForm">
<TEXTAREA rows="3" cols="50" id="sampleShowId" name="sampleShowId" readonly><script language="javascript">
<!--
//------------------------------------------------------------
//javascript by ＠うさ http://www.usagi-js.com/
//------------------------------------------------------------
//テキストボックスの値をセットしています。マウスがはずれたときに呼び出されています。
function ShowDescription(content)
{
	document.getElementById('sampleDescription').value = content.id;
}
//テキストボックスの値をなしにしています。マウスがはずれたときに呼び出されています。
function EraseDescription()
{
	document.getElementById('sampleDescription').value = "";
}
//-->
</script>
<!--以下HTML部です-->
<a href="#" id="Seat Coach A" onmouseover="ShowDescription(this)" onmouseout="EraseDescription()"><font color="red">■</font></a>
<input id="sampleDescription" type="text" name="sampleDescription" size="20" readonly>
</TEXTAREA>
<input type="button" value="選択" onclick="javascript:document.getElementById('sampleShowId').select()" onkeypress="javascript:document.getElementById('sampleShowId').select()">
</FORM>
]]>
      
   </content>
</entry>
<entry>
   <title>S~Wから始まるメソッド、プロパティリファレンス</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/sw.html" />
   <id>tag:blog.usagi-js.com,2006://1.15</id>
   
   <published>2006-09-22T16:51:24Z</published>
   <updated>2006-09-22T16:54:06Z</updated>
   
   <summary>S~Wから始まるメソッド、プロパティなどのリファレンスページを復旧しました。 こ...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="25" label="リファレンス" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[S~Wから始まるメソッド、プロパティなどのリファレンスページを復旧しました。
これにてアルファベット別リファレンスすべて復旧です。
よろしく願いいたします♪

<a href="http://usagi-js.com/">うさのJavaScript講座TOPへ</a>]]>
      
   </content>
</entry>
<entry>
   <title>本日日付を画像で表示☆サンプル集１－６９を追加しました</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/post_1.html" />
   <id>tag:blog.usagi-js.com,2006://1.14</id>
   
   <published>2006-09-20T17:48:33Z</published>
   <updated>2006-10-04T14:00:16Z</updated>
   
   <summary>本日日付を画像で表示☆サンプル集１〓６９を追加しました。 もともとサンプル集１〓...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="JavaScript de ブログ" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="27" label="日付" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[本日日付を画像で表示☆サンプル集１－６９を追加しました。<br/>
もともとサンプル集１－７に入っていたのですが、最近のブラウザではgetYearでなくgetFullYearで年度を取得するので、その1行を変更したものです。サンプルはそのままHTML/XHTML内部にも記述できますし、JSファイルにしていただいても結構です。ご自由にカスタマイズしてくださいませ。<br/>
ブログにももちろん使えますのでご利用くださいね♪<br/>
<br/>
<a href="http://usagi-js.com/sample/jssample1_3.htm">うさのJavaScript講座・サンプル集1-69</a>をこのページに貼り付けています。 <br/>

<script language="javascript">
<!--
//変数宣言
	var dtToday = new Date;
	var strYear;
	var strMonth;
	var strDate;
	//０から９までの画像を用意してください。
	//画像のURLを宣言します。
	var strPicture = new Array("http://usagi-js.com/sample/images/number/orange0_on.gif",
		"http://usagi-js.com/sample/images/number/orange1_on.gif",
		"http://usagi-js.com/sample/images/number/orange2_on.gif",
		"http://usagi-js.com/sample/images/number/orange3_on.gif",
		"http://usagi-js.com/sample/images/number/orange4_on.gif",
		"http://usagi-js.com/sample/images/number/orange5_on.gif",
		"http://usagi-js.com/sample/images/number/orange6_on.gif",
		"http://usagi-js.com/sample/images/number/orange7_on.gif",
		"http://usagi-js.com/sample/images/number/orange8_on.gif",
		"http://usagi-js.com/sample/images/number/orange9_on.gif");

	//年月日を取得
	strYear = dtToday.getFullYear();
	strMonth = dtToday.getMonth() + 1;
	strDate = dtToday.getDate();

	//桁数を整理します
	if (strMonth < 10)
	{
		strMonth = "0" + strMonth;
	}
	if (strDate < 10)
	{
		strDate = "0" + strDate;
	}

	//数字に画像を当てるための準備です。
	var imgYear, imgMonth, imgDate;
	imgYear = strYear.toString();
	imgMonth = strMonth.toString();
	imgDate = strDate.toString();

	//ここから表示
	document.write("<img src='"+strPicture[imgYear.substring(0,1)]+"'/>"+"<img src='"+strPicture[imgYear.substring(1,2)]+"'/>"+"<img src='"+strPicture[imgYear.substring(2,3)]+"'/>"+"<img src='"+strPicture[imgYear.substring(3,4)]+"'/>"+"年<br/>");
	document.write("<img src='"+strPicture[imgMonth.substring(0,1)]+"'/>"+"<img src='"+strPicture[imgMonth.substring(1,2)]+"'/>"+"月");
	document.write("<img src='"+strPicture[imgDate.substring(0,1)]+"'/>"+"<img src='"+strPicture[imgDate.substring(1,2)]+"'/>"+"日");
-->
</script>

<br/>ソースはこちら↓<br/>
<FORM name="sampleTodayForm">
<TEXTAREA rows="3" cols="50" id="sampleToday" name="sampleToday" readonly><script language="javascript">
<!--
//------------------------------------------------------------
//javascript by ＠うさ http://www.usagi-js.com/
//------------------------------------------------------------

	//変数宣言
	var dtToday = new Date;
	var strYear;
	var strMonth;
	var strDate;
	//０から９までの画像を用意してください。
	//画像のURLを宣言します。
	var strPicture = new Array("../images/number/orange0_on.gif",
		"../images/number/orange1_on.gif",
		"../images/number/orange2_on.gif",
		"../images/number/orange3_on.gif",
		"../images/number/orange4_on.gif",
		"../images/number/orange5_on.gif",
		"../images/number/orange6_on.gif",
		"../images/number/orange7_on.gif",
		"../images/number/orange8_on.gif",
		"../images/number/orange9_on.gif");

	//年月日を取得
	strYear = dtToday.getFullYear();
	strMonth = dtToday.getMonth() + 1;
	strDate = dtToday.getDate();

	//桁数を整理します
	if (strMonth < 10)
	{
		strMonth = "0" + strMonth;
	}
	if (strDate < 10)
	{
		strDate = "0" + strDate;
	}

	//数字に画像を当てるための準備です。
	var imgYear, imgMonth, imgDate;
	imgYear = strYear.toString();
	imgMonth = strMonth.toString();
	imgDate = strDate.toString();

	//ここから表示
	document.write("<img src='"+strPicture[imgYear.substring(0,1)]+"'>"+"<img src='"+strPicture[imgYear.substring(1,2)]+"'>"+"<img src='"+strPicture[imgYear.substring(2,3)]+"'>"+"<img src='"+strPicture[imgYear.substring(3,4)]+"'>"+"年<br>");
	document.write("<img src='"+strPicture[imgMonth.substring(0,1)]+"'>"+"<img src='"+strPicture[imgMonth.substring(1,2)]+"'>"+"月");
	document.write("<img src='"+strPicture[imgDate.substring(0,1)]+"'>"+"<img src='"+strPicture[imgDate.substring(1,2)]+"'>"+"日");
//-->
</script></TEXTAREA>
<input type="button" value="選択" onclick="javascript:document.getElementById('sampleToday').select()" onkeypress="javascript:document.getElementById('sampleToday').select()">
</FORM>
]]>
      
   </content>
</entry>
<entry>
   <title>J~Rから始まるメソッド、プロパティリファレンス</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/jr.html" />
   <id>tag:blog.usagi-js.com,2006://1.13</id>
   
   <published>2006-09-16T15:51:43Z</published>
   <updated>2006-09-16T15:53:15Z</updated>
   
   <summary>J~Rから始まるメソッド、プロパティなどのリファレンスページを復旧しました。 よ...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="25" label="リファレンス" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[J~Rから始まるメソッド、プロパティなどのリファレンスページを復旧しました。
よろしく願いいたします♪

<a href="http://usagi-js.com/">うさのJavaScript講座TOPへ</a>]]>
      
   </content>
</entry>
<entry>
   <title>JavaScript川柳募集♪</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/javascript_1.html" />
   <id>tag:blog.usagi-js.com,2006://1.12</id>
   
   <published>2006-09-15T17:28:04Z</published>
   <updated>2006-09-17T15:48:03Z</updated>
   
   <summary>いつも楽しい川柳を投函していただいていたJavaScript川柳。 もうじき再開...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="お知らせ" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[いつも楽しい川柳を投函していただいていたJavaScript川柳。
もうじき再開いたします！
JavaScriptにちなんだウタ、うたってみてくださいネ♪

<a href="http://usagi-js.com/">エントリーはこちらから</a>
]]>
      
   </content>
</entry>
<entry>
   <title>サンプル集10復旧のお知らせ</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/10.html" />
   <id>tag:blog.usagi-js.com,2006://1.11</id>
   
   <published>2006-09-15T17:17:23Z</published>
   <updated>2006-09-15T17:20:09Z</updated>
   
   <summary>うさのJavaScript講座・サンプル集10を復旧させました。 サンプル集10...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="1" label="javascript" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="26" label="クッキー" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[うさのJavaScript講座・サンプル集10を復旧させました。
サンプル集10はCookieに関するサンプル集です。
ブラウザでCookieの設定が有効になっていれば利用可能です。ぜひご利用くださいませ♪

<a href="http://usagi-js.com">うさのJavaScript講座へ</a>]]>
      
   </content>
</entry>
<entry>
   <title>G,H,Iから始まるメソッド、プロパティリファレンス</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/ghi.html" />
   <id>tag:blog.usagi-js.com,2006://1.10</id>
   
   <published>2006-09-13T18:15:32Z</published>
   <updated>2006-09-13T18:16:44Z</updated>
   
   <summary>G,H,およびIから始まるメソッド、プロパティなどのリファレンスページを復旧しま...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="25" label="リファレンス" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[G,H,およびIから始まるメソッド、プロパティなどのリファレンスページを復旧しました。
よろしく願いいたします♪

<a href="http://usagi-js.com/">うさのJavaScript講座TOPへ</a>]]>
      
   </content>
</entry>
<entry>
   <title>サンプル集9復旧のお知らせ</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/9.html" />
   <id>tag:blog.usagi-js.com,2006://1.9</id>
   
   <published>2006-09-12T15:05:29Z</published>
   <updated>2006-09-12T15:10:34Z</updated>
   
   <summary>うさのJavaScript講座・サンプル集9を復旧させました。 サンプル集9はい...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      うさのJavaScript講座・サンプル集9を復旧させました。
サンプル集9はいろいろなものを集めたサンプル集です。
よろしくお願いいたします♪
      
   </content>
</entry>
<entry>
   <title>Fから始まるメソッド、プロパティリファレンス</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/f.html" />
   <id>tag:blog.usagi-js.com,2006://1.8</id>
   
   <published>2006-09-11T19:56:15Z</published>
   <updated>2006-09-11T19:56:52Z</updated>
   
   <summary>Fから始まるメソッド、プロパティなどのリファレンスページを復旧しました。 よろし...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="25" label="リファレンス" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[Fから始まるメソッド、プロパティなどのリファレンスページを復旧しました。
よろしく願いいたします♪

<a href="http://usagi-js.com/">うさのJavaScript講座TOPへ</a>]]>
      
   </content>
</entry>
<entry>
   <title>Eから始まるメソッド、プロパティリファレンス</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/e.html" />
   <id>tag:blog.usagi-js.com,2006://1.7</id>
   
   <published>2006-09-10T17:31:15Z</published>
   <updated>2006-09-10T17:33:30Z</updated>
   
   <summary>Eから始まるメソッド、プロパティなどのリファレンスページを復旧しました。 Jav...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="25" label="リファレンス" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[Eから始まるメソッド、プロパティなどのリファレンスページを復旧しました。
JavaScriptの最近のVersionは入っておりませんが、どうぞよろしくお願いいたします♪

<a href="http://usagi-js.com/">うさのJavaScript講座TOPへ</a>]]>
      
   </content>
</entry>
<entry>
   <title>サンプル集7,8復旧のお知らせ</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/78.html" />
   <id>tag:blog.usagi-js.com,2006://1.6</id>
   
   <published>2006-09-05T16:39:55Z</published>
   <updated>2006-09-05T16:45:09Z</updated>
   
   <summary>うさのJavaScript講座・サンプル集7およびサンプル集8を復旧させました。...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="22" label="ActiveX" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="24" label="DirectX" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="1" label="javascript" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="20" label="レイヤー" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[うさのJavaScript講座・サンプル集7およびサンプル集8を復旧させました。
サンプル集7はDirectXやActiveXを利用したサンプル集です。また、サンプル集8はレイヤー関連のサンプルとなります。
よろしくお願いいたします♪

<a href="http://usagi-js.com/jssample.htm">サンプル集入口へ</a>
]]>
      
   </content>
</entry>
<entry>
   <title>ブログにもJavaScriptを♪ おみくじ編</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/javascript.html" />
   <id>tag:blog.usagi-js.com,2006://1.5</id>
   
   <published>2006-09-04T18:20:33Z</published>
   <updated>2006-10-04T13:57:59Z</updated>
   
   <summary>こんにちは。 ブログでももちろんJavaScriptが使えるということで、サンプ...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="JavaScript de ブログ" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="17" label="おみくじ" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="16" label="ブログにJavaScript" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[こんにちは。<img src="http://usagi-js.com/images/usadot.gif" alt="＠うさ" width="11" height="15" border="0" /><br/>
ブログでももちろんJavaScriptが使えるということで、サンプル集の一部からブログに貼り付けてお送りします。<br/>
今回は本日サンプルを復旧させましたサンプルの中から、ここにおみくじをはってみました。サンプルでは投函本文にありますが、左や右のブログパーツ部分にいかがでしょうか？Script内部は配列になっていますのでいくつでも画像を準備していただけます。<br/>
おためしあれ♪<br/><br/><br/>

<script language="javascript">
<!--
//------------------------------------------------------------
//javascript by ＠うさ http://usagi-js.com/
//------------------------------------------------------------
function CalStart()
{
	//画像を用意していれておきます。
	var arrImage = new Array("http://usagi-js.com/sample/images/omikuji/daikichi.gif",
			"http://usagi-js.com/sample/images/omikuji/kichi.gif",
			"http://usagi-js.com/sample/images/omikuji/chuukichi.gif")
	//処理スタート
	nTemp = Math.round(Math.random()*(arrImage.length - 1));
	document.getElementById('imageOmikuji').src = arrImage[nTemp];
}
//-->
</script>
<INPUT type="button" name="buttonOmikuji" value="ぽちっ" onClick="javascript:CalStart()"><br/>
<img src="http://usagi-js.com/sample/images/omikuji/blank.gif" name="imageOmikuji" border="0" />
<br/><br/>ソースはこちら↓<br/>
<FORM name="sampleOmikujiForm">
<TEXTAREA rows="3" cols="50" id="sampleOmikuji" name="sampleOmikuji" readonly>
<script language="javascript">
<!--
//------------------------------------------------------------
//javascript by ＠うさ http://usagi-js.com/
//------------------------------------------------------------
function CalStart()
{
	//画像を用意していれておきます。
	var arrImage = new Array("http://usagi-js.com/sample/images/omikuji/daikichi.gif",
			"http://usagi-js.com/sample/images/omikuji/kichi.gif",
			"http://usagi-js.com/sample/images/omikuji/chuukichi.gif")
	//処理スタート
	nTemp = Math.round(Math.random()*(arrImage.length - 1));
	document.getElementById('imageOmikuji').src = arrImage[nTemp];
}
//-->
</script>
<!--以下HTML部です-->
<INPUT type="button" name="buttonOmikuji" value="ぽちっ" onClick="javascript:CalStart()"><br>
<img src="http://usagi-js.com/sample/images/omikuji/blank.gif" name="imageOmikuji" border="0">
</TEXTAREA>
<input type="button" value="選択" onclick="javascript:document.getElementById('sampleOmikuji').select()" onkeypress="javascript:document.getElementById('sampleOmikuji').select()">
</FORM>]]>
      別ページにサンプルを張っておりましたが、ブログ本文に戻しました。(10/03)
   </content>
</entry>
<entry>
   <title>サンプル集6復旧のお知らせ</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/6.html" />
   <id>tag:blog.usagi-js.com,2006://1.4</id>
   
   <published>2006-09-04T17:23:13Z</published>
   <updated>2006-09-05T16:45:39Z</updated>
   
   <summary>うさのJavaScript講座・サンプル集6を復旧させました。 サンプル集6は演...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="1" label="javascript" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="4" label="ランダム" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="6" label="乱数" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="3" label="演算処理" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[うさのJavaScript講座・サンプル集6を復旧させました。
サンプル集6は演算処理などに関するサンプル集です。ランダムで処理を行う方法についてもサンプルがあります。
よろしくお願いいたします♪

<a href="http://usagi-js.com/jssample.htm">サンプル集入口へ</a>]]>
      
   </content>
</entry>
<entry>
   <title>サンプル集5復旧のお知らせ</title>
   <link rel="alternate" type="text/html" href="http://blog.usagi-js.com/archives/2006/09/5.html" />
   <id>tag:blog.usagi-js.com,2006://1.3</id>
   
   <published>2006-09-03T16:32:29Z</published>
   <updated>2006-09-04T17:43:03Z</updated>
   
   <summary>うさのJavaScript講座・サンプル集5を復旧させました。 サンプル集5はフ...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="更新履歴" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="9" label="IFRAME" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="1" label="javascript" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="2" label="サンプル" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="7" label="フレーム" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://blog.usagi-js.com/">
      <![CDATA[うさのJavaScript講座・サンプル集5を復旧させました。
サンプル集5はフレーム処理に関するサンプル集です。
よろしくお願いいたします♪

<a href="http://usagi-js.com/jssample.htm">サンプル集入口へ</a>
]]>
      
   </content>
</entry>

</feed>

