[js基本形] [html] function toggle($this, $target) {
var elm = document.getElementById($target);
var style = elm.currentStyle || document.defaultView.getComputedStyle(elm, ”);
if (style.display == ‘none’) {
elm.style.display = ‘block’
} else {
elm.style.display = ‘none’
}
if ($this.className.indexOf(‘active’) > 0) {
$this.className = $this.className.replace(‘ active’, ”);
} else {
$this.className += ‘ active’;
}
}[/html] [html] <a href="javascript:void(0)" onclick="toggle(this,’targetID’)">[/html]

GifCam(gifアニメーションキャプチャソフト)