diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/scripts/script.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 5ad930281..9d667c7af 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -289,8 +289,11 @@ function suggestWikiname(){ /** * This prints the switch to toggle the Table of Contents */ -function showTocToggle(show,hide) { +function showTocToggle(showtxt,hidetxt) { if(document.getElementById) { + show = '<img src="'+DOKU_BASE+'lib/images/arrow_down.gif" alt="'+showtxt+'">'; + hide = '<img src="'+DOKU_BASE+'lib/images/arrow_up.gif" alt="'+hidetxt+'">'; + document.writeln('<div class=\'toctoggle\'><a href="javascript:toggleToc()" class="toc">' + '<span id="showlink" style="display:none;">' + show + '</span>' + '<span id="hidelink">' + hide + '</span>' |