User talk:Atelaes/highlightSense.js

formatting the wrong element?
Please see [[template talk:senseid]]. &#x200b;—msh210℠ (talk) 19:39, 13 July 2010 (UTC)

finding the right element
Currently  includes e.g. [[chen]]; perhaps substitute for if (hash.indexOf('-') > -1) { targetSense = document.getElementById(hash); targetSense.setAttribute('style', 'background-color:#DEF'); } this: if (hash.indexOf('-') > -1) { targetSense = document.getElementById(hash); if (targetSense.className.indexOf('senseid')>-1){ targetSense.setAttribute('style', 'background-color:#DEF');} } ? &#x200b;—msh210℠ (talk) 19:45, 13 July 2010 (UTC)