|
Post by Uchiha Sasuke on Jul 31, 2004 7:57:59 GMT
this is just a smiple script that will highlight words that you specify, it's really good if your searching for something, all you do is when in a thread, just put "&highlight=" then after the equal sign, put the word you want, and it will highlight every single character sequence that matches what you put there
for example, if i wanted the word blah to be highlighted in this thread i'd put this into my address bar
well, simple as that, just put this in your board footers
<script> //Simple Highlight word script //Coded by NCGI (Uchiha Sasuke) ifont = document.getElementsByTagName('font') if (location.href.indexOf('=display&thread=') !=-1 && location.href.indexOf('&highlight=') !=-1) { HighlightText = location.href.split('&highlight=')[1]; HighlightText = HighlightText.replace(/%20/gi," "); for (a=0;a<ifont.length;a++) { if (ifont[a].size=="2" && ifont[a].parentNode.width=="80%" && ifont[a].previousSibling.tagName=="HR") { if (ifont[a].innerHTML.match(HighlightText)) { HighlightIt = new RegExp(HighlightText,"g") ifont[a].innerHTML = ifont[a].innerHTML.replace(HighlightIt,'<span style="background-color: #0000FF; color: #FFFFFF">'+HighlightText+'</span>'); }}}} </script>
|
|