You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
676 B
35 lines
676 B
|
19 years ago
|
function getE(id)
|
||
|
|
{
|
||
|
|
if(document.getElementById) {
|
||
|
|
return document.getElementById(id);
|
||
|
|
} else if(document.all) {
|
||
|
|
return document.all[id];
|
||
|
|
} else return;
|
||
|
|
}
|
||
|
|
|
||
|
|
function openClose(id,mode)
|
||
|
|
{
|
||
|
|
element = getE(id);
|
||
|
|
img = getE('img_'+id);
|
||
|
|
|
||
|
|
if(element.style) {
|
||
|
|
if(mode == 0) {
|
||
|
|
if(element.style.display == 'block' ) {
|
||
|
|
element.style.display = 'none';
|
||
|
|
img.src = 'pics/plus.gif';
|
||
|
|
} else {
|
||
|
|
element.style.display = 'block';
|
||
|
|
img.src = 'pics/moins.gif';
|
||
|
|
}
|
||
|
|
} else if(mode == 1) {
|
||
|
|
element.style.display = 'block';
|
||
|
|
img.src = 'pics/moins.gif';
|
||
|
|
} else if(mode == -1) {
|
||
|
|
element.style.display = 'none';
|
||
|
|
img.src = 'pics/plus.gif';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|