a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
357 B
JavaScript
21 lines
357 B
JavaScript
function toggle (name)
|
|
{
|
|
var element = document.getElementById (name);
|
|
|
|
if (element.style.display == 'none')
|
|
element.style.display = '';
|
|
else
|
|
element.style.display = 'none';
|
|
}
|
|
|
|
function highlight (element)
|
|
{
|
|
element.style.background = "#eee";
|
|
}
|
|
|
|
function unhighlight (element)
|
|
{
|
|
element.style.background = "none";
|
|
}
|
|
|