Jay
Full Member
Posts: 167
|
Post by Jay on Jan 22, 2005 7:45:55 GMT
Name: Rating Icons Under Text Area Type: IE Only
<script> /* © tu advanced http://ngmaster.proboards21.com */
if(location.href.match("=modify") || location.href.match("=post")) { var IMG = new Array(); IMG[0] = new Array('[ poor ]','[ 1/6 ]'); IMG[1] = new Array('[ bad ]','[ 2/6 ]'); IMG[2] = new Array('[ mediocre ]','[ 3/6 ]'); IMG[3] = new Array('[ pretty decent ]','[ 4/6 ]'); IMG[4] = new Array('[ excellent ]','[ 5/6 ]'); IMG[5] = new Array('[ superior ]','[ 6/6 ]');
var TD = document.getElementsByTagName("TD"); for(t=0;t<TD.length;t++) { if(TD[t].width=="23%" && TD[t].innerHTML.match(/Message:/i)) { for (i=0;i<IMG.length;i++) { TD[t+1].innerHTML += "- <a href='javascript: add(\""+IMG[i][0]+"\");'>"+IMG[i][1]+"</a> - "; }}}} </script>
You will have to edit your censored word list to correspond and correculate with the variables in the IMG[n] array. Also remember to count up by one each time you add a new rating.
Footers
|
|