2009-09-01から1ヶ月間の記事一覧
片道3時間半のドライブ、海を助手席の壁紙に、突っ走ってきた。 路面のつなぎ目で、アンダーリップをこすったみたい。 あぁ〜〜〜
function setFormValue ( n, v ) { var d = document; var objs = d.getElementsByName( n ) || [ document.getElementById( n ) ]; var i = 0, p; while( p = objs[ i++ ] ) { switch( p.type ) { case 'text': case 'textarea': case 'button': case 'rese…
初期化と、フェードアウトする前と終わった後に、指定した関数を実行できる <title></title> <style type="text/css"> </style> <h1 id="a">なんだか薄くなる</h1> <h1 id="b">なんだか薄くなる</h1> <script type="text/javascript"> //@cc_on function FadeOutMessenger () { this.initializer.apply( this, arguments );…
var ClassList = { 'contains' : (function () { return function ( node, css ) { var str = ' ' + node.className + ' '; if ( -1 < str.indexOf( ' ' + css + ' ' ) ) return true; var i = 0, k, keys = css.split(/ +/); while( k = keys[ i++ ] ) if(-…
function getMatubi(y, m) { m--; return (m^m<7|30)-(m==1)*(1+(y%4>0^y%100>0^y%400>0)); } これをもっと短くしたい!と、せつに思う。Dateオブジェクトは無しで。
<title>タブメニュー</title> <style type="text/css"> #box0 { height: 200px; border: 3px #888 double; background-color:#ddf; margin-bottom: 1em; } #box0 div { height :158px; padding : 4px; overflow: auto; clear : both; overflow: auto; } #menu { width : 100%…
<title></title> <style type="text/css"> </style> <p id="a" class="ab cd ef gh ij">abc</p> <script type="text/javascript"> //_______________________________ function TokenList (e, type) { this.e = e; this.at = type; } //____ TokenList.prototype.conta…