From d600e6744b875f7370c379b7b9c7e69dfd8a089d Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sat, 3 Nov 2007 18:12:47 +0000 Subject: [PATCH] fixed display of active hint --- content/hints.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/hints.js b/content/hints.js index 8e085345..7e2e3a2d 100644 --- a/content/hints.js +++ b/content/hints.js @@ -314,12 +314,12 @@ outer: hints[i][3] = imgspan; doc.body.appendChild(imgspan); } - imgspan.style.backgroundColor = (activeHint == i + 1) ? "#88FF00" : "yellow"; + imgspan.style.backgroundColor = (activeHint == hintnum) ? "#88FF00" : "yellow"; imgspan.style.display = "inline"; } if (!imgspan) - elem.style.backgroundColor = (activeHint == i + 1) ? "#88FF00" : "yellow"; + elem.style.backgroundColor = (activeHint == hintnum) ? "#88FF00" : "yellow"; elem.style.color = "black"; span.textContent = "" + (hintnum++); span.style.display = "inline";