ホーム へ       サンプルページ  カレンダー 1 calendar1.htm

月カレンダー、〜2099年、時計a 付き。      DHTML、Behavior。      サイズ、配色、英語表示などのカスタマイズはテキストエディターなどで可。    all 対応。     コピー、編集し、簡単にWebで応用できまっ、(^ ^)。

デモは、”月”や”年”の選択などで。

 

< ご使用方法 >

・ ローカル(=PC)への保存は、calendar1/をクリック開いたホルダーで、calendar1.htm、0010140.htc を右クリック、[対象をファイルに保存] - 【ファイルのダウンロード】、【ファイル名を付けて保存】 - <保存する場所>: ……、などで。   ※: 変わってしまったファイル名や、*.html 中のパスは要修正。   

 ・ このDHTMLの実装方法は、calendar1.htm をテキストエディターで開き、ホームページ作成ソフトなどのHTML挿入/編集メニューなどを使って、新しいページ 1 や hogehoge.html(=任意の挿入先ファイル名) の、 <head> 〜 </head> の任意の行間に (*1)を、さらに <body> 〜 </body>の任意の行間に (*2) をペーストします。

 ・ 編集方法は、hogehoge.html をテキストエディター、あるいは ”FrontPage Express” などのホームページ制作ソフトのHTMLタグ挿入/編集メニュー で開き編集します。    下記の(例) (*1) と、(*2)を参考に太字部分の編集を任意に行います。   ※: テキストエディターによる編集は、HP制作ソフトとの互換性の問題を生じません(HP制作ソフト間は少し生じる)。

 ・ 作動テストは、ローカル(PC)に保存し、 Internet Explorer 8.x〜 などで開いて。    更新の確認は [F5]キー を押し、サーバーやブラウザーのキャッシュクリアー、最新データ読み込み(≠再アクセス)で行います。

 ・ アップロードや作動テストは、hogehoge.html と同じ階層〔ホルダー/ディレクトリー〕に、使用する画像、*.htc なども転送/配置し実施。  ※:別ディレクトリーに配置時は、*.html 中のパスは要修正。   FTPなどで変わったファイル名は要修正。    スクリプト構文中への改行混入は非作動原因。

 ・ 関連情報 : 色記号5〃6スタイルシートリファレンスホームページ開設入門。   Web DevelopmentWeb開発IE10 互換性クックブック〃開発者向けガイド、IE API リファレンスIE 開発 > HTMLとCSS開発ツールでサイトを修正スクリプト デバッグの概要HTMLとCSSのサポートCSSの改良点XML〃リファレンスDHTML

 

(*1) : calendar1.htm (例)         挿入先の  <head> 〜 </head> の、 部分にペーストします。

 HTMLの編集方法   (*1) をテキストエディターで開き、下記↓のHTMLを挿入先ファイルにペースト、太字部分を編集し使用。
〔この列ペースト不要〕   

追加

シフトJIS使用(削除不可)

互換表示

ieなどに表示するアイコンファイル名(削除可)

<style type= </style>は(削除可)
(*1)〜(*3)表タイトル背景

body 文字色 背景色 下線
ハイパーリンク 〃
表示済みの〃
マウスオーバー時の〃
クリック中の〃
フォント
 

リンクを新しいWinで開くを標準(削除可)※:target= いろいろ
同じフレーム=_self、ページ全体=_top、親フレーム=_parent
お気に入り、タスクバーに表示するページ名(≠ファイル名)

 

 

 

時計 フォント色 フォントタイプ

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns:IE>

<meta http-equiv="Content-Type" content="text/html; charset=x-sjis">

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

<link REL="SHORTCUT ICON" href="favicon.ico">

<style type="text/css"><!--
.xxx0 { background: #F9F8F9 url('wttec.gif'); }
.xxx1 { background-color:#E3E0DC; }
.xxx2 { background-color:#FFFFFF; }
body { color:#000000; background: #F9F8F9 url('wttec.gif'); text-decoration:none; }
a:link { color:#3C0055; background-color:#FBFAFE; text-decoration:none; }
a:visited { color:#270037; background-color:#EDECEF; text-decoration:none; }
a:hover { color:#1F002E; background-color:#D2F3F4; text-decoration:underline; }
a:active { color:#1F002E; background-color:#F5FFD2; text-decoration:underline; }
font {font-size:12px;line-height:13px;}
body,tr,td,form{ font-family:MS PGothic,MS Gothic,Verdana; font-size: 12px}
 --></style>

<base target="_blank">

<title>サンプルページ  カレンダー 1</title>

<!-- ☆ ---------- 時計 ↓ この間をコピー、編集、ペーストします。 ---------- -->
<script>
/*
Live Date Script- ゥ Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com */
var dayarray=new Array("(日)","(月)","(火)","(水)","(木)","(金)","(土)")
var montharray=new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月")

====  この間、説明を省略。  ====

var cdate="<font color='#21001C' face='Lucida Console'> "+year+"年"+montharray[month]+""+daym+"日"+dayarray[day]+" "+hours+":"+minutes+":"+seconds+""+dn+"</font>"
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}
</script>
<!-- ☆ ----------- 時計 ↑ この間をコピー&ペーストします。 ------------ -->

<!-- ☆ ----------- カレンダー ↓ この間をコピー&ペーストします。 ------------ -->
<style type="text/css"><!--
@media all
{
IE\:Calendar
{
behavior: url(0010140.htc) ;
width : 33%;
}
}
--></style>
<!-- ☆ ----------- カレンダー ↑ この間をコピー&ペーストします。 ------------ -->
 

 

(*2) calendar1.htm (例)        挿入先の  <body> 〜 </body> の、 部分にペーストします。

HTMLの編集方法   (*2)をテキストエディターで開き、下記↓のHTMLを挿入先ファイルにペースト、太字部分を編集し使用。
〔この列ペースト不要〕

※:<body> 部の編集
位置 サイズ
フォント サイズ
背景画像

 

 

カレンダー

相対位置 位置シフト 幅
非透明度

明罫線 暗罫線
背景色 背景画像

幅 高さ 罫線色

 

<body onLoad="goforit()">
<!-- 時計 ★ ↑onLoad="goforit()" 部分と、↓ この間をコピー、編集、ペーストします。 ---------- -->
<!--webbot bot="HTMLMarkup" startspan --><div style="position:absolute; left:5; top:10; width:252; height:15; border-style:inset; border-width:1; border-color:#C1BAD1; padding-left:0; padding-right:2; padding-top:2; padding-bottom:1"><span style="font-family:Lucida Console; font-size:8pt; font-weight:normal; background-color: #4D4858; color:#F1E3C8; letter-spacing: 2px"><span style="background-color:#FFFFFF; background-image: url('../bg_gry3.gif')">&nbsp;<span id="clock"></span></span></span></div><!--webbot bot="HTMLMarkup" endspan -->
<!--ebbot bot="HTMLMarkup" endspan " -->
<br><br>
<!-- ★ ---------- 時計 ↑ この間をコピー、編集、ペーストします。 ---------- -->

<!--webbot bot="HTMLMarkup" startspan -->
<!-- ■ ---- 位置調整のためのDIV有りは、 ↓ この間をコピー&ペーストします。 -->
<!--               表示枠位置     表示枠サイズ        座標              表示枠背景色 -->
<div style="position:relative; top:-10; left:-8; width:250;  ……  Opacity=90, FinishOpacity=90)">
<table width="250"  …… "#F1F0FB" bordercolordark="#D5CED3">
<tr>
<td bgcolor="#FFFFFF" valign="top" align="left" background="../wttec.gif">
<!-- ★ ----------- ↓ この間をコピー&ペーストします。 ------------ -->
<IE:Calendar id="cal" style="width : 250; height : 225; border : 1px solid #827684;"> </IE:Calendar>
<!-- ★ ----------- ↑ この間をコピー&ペーストします。 ------------ -->
</td>
</tr>
</table>
</DIV>
<!-- ■ ---- 位置調整のためのDIV有りは ↑ この間をコピー&ペーストします。 -->
<!--webbot bot="HTMLMarkup" endspan -->

 

 

(*3) 0010140.htc (例)         テキストエディターで開き、編集しhogehoge.htmlと同ディレクトリーに転送・配置します。

   *htc の編集方法   (*3)をテキストエディターで開き、下記↓の太字部分を編集し使用。
  〔この列ペースト不要〕

 

英語可

 

 

格子色

 

 

西暦開始
 〃 末尾

 

====  この間、説明を省略。  ====

new Array('1月', '2月', '3月', '4月', '5月', '6月','7月', '8月', '9月', '10月', '11月', '12月'),
new Array('1月', '2月', '3月', '4月', '5月', '6月','7月', '8月', '9月', '10月', '11月', '12月')
);

var gaDayNames = new Array(
new Array('', '月', '火', '水', '木', '金', '土'),
new Array('', '月', '火', '水', '木', '金', '土'),
new Array('日曜', '月曜', '火曜', '水曜', '木曜', '金曜', '土曜')

====  この間、説明を省略。  ====

var gsGridLinesColor = '#CFCED2' // Grid line color

====  この間、説明を省略。  ====

var giMinYear = 1900 // Minimum year (1 is the lowest possible value)
var giMaxYear = 2099 // Maximum year

// Load the property values defined on the element to replace defaults

====  この間、説明を省略。  ====

< 補足 >    適時参照あれ!。

・ Wordpad によるHTMLソース(タグ)を見ながらの直接編集方法。