diff options
author | krasimir <unknown> | 2004-07-31 12:04:38 +0000 |
---|---|---|
committer | krasimir <unknown> | 2004-07-31 12:04:38 +0000 |
commit | 133c8c5c6d45e90ee51ea2bd889367034bcaa845 (patch) | |
tree | 7261f71d294c0444ae3890cb3d6f0014c242a177 /html/haddock.js | |
parent | 64d30b1db8d571bc3b0d8947a81c59b4bd353417 (diff) |
[haddock @ 2004-07-31 12:04:37 by krasimir]
make the DHtmlTree in contents page more portable. The +/- buttons are replaced
with new images which looks more beatiful.
Diffstat (limited to 'html/haddock.js')
-rw-r--r-- | html/haddock.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/html/haddock.js b/html/haddock.js index 8dbd0a03..4280d19c 100644 --- a/html/haddock.js +++ b/html/haddock.js @@ -1,11 +1,15 @@ // Haddock JavaScript utilities -function toggle(button,id) { +function toggle(button,id) +{ var n = document.getElementById(id).style; - if (n.display == "none") { - button.src = "minus.jpg"; - n.display = "inline"; - } else { - button.src = "plus.jpg"; + if (n.display == "none") + { + button.src = "minus.gif"; + n.display = "block"; + } + else + { + button.src = "plus.gif"; n.display = "none"; } } |