User talk:Atelaes/highlightSense.js
Latest comment: 14 years ago by Msh210 in topic finding the right element
formatting the wrong element?
editPlease see [[template talk:senseid]].—msh210℠ (talk) 19:39, 13 July 2010 (UTC)
finding the right element
edit
Currently if (hash.indexOf('-') > -1)
includes e.g. [[chen#Anglo-Norman]]; 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');}
}