JavaScript
prototype.jsを読み込んでるとこんな感じでイベントハンドラ追加できる。 スマートで非常に好き。 Event.observe(element, name, observer, useCapture) element: オブジェクトかID name: イベント名 ('click', 'load' など) observer: イベントを処理する関…
prototype.jsを読み込んでるとこんな感じでイベントハンドラ追加できる。 スマートで非常に好き。 Event.observe(element, name, observer, useCapture) element: オブジェクトかID name: イベント名 ('click', 'load' など) observer: イベントを処理する関…