Peter
New Member
God
Posts: 6
|
Post by Peter on Oct 29, 2004 11:36:00 GMT
Code created by Cheater[/color]
This will put rating images under the post (kind of like in Show Off)
Board Footers:
<script> /* Rating Images by cheater007 ;) */
if (location.href.match('=modify') || location.href.match('=post')) { var imgs = new Array(); imgs[0] = new Array('RATE TEXT', 'IMAGE URL'); imgs[1] = new Array('...', '...'); imgs[2] = new Array('...', '...'); imgs[3] = new Array('...', '...'); imgs[4] = new Array('...', '...');
var trs = document.getElementsByTagName('td'); for (i=0;i<trs.length;i++) { if (trs[i].innerHTML.match('<TEXTAREA') && !trs[i].innerHTML.match(/<script/gi)) { for (a=0;a<imgs.length;a++) { trs[i].innerHTML += "<a href=\"javascript:adds('" + imgs[a][0] + "')\"><img src='" + imgs[a][1] + "' border=0></a>"; } } } } </script>
In the code find:
imgs[0] = new Array('RATE TEXT', 'IMAGE URL'); Change RATE TEXT to the text that will be replaced, and change IMAGE URL to the URL of the image. Repeat this for each one. To add one, just put
imgs[5] = new Array('RATE TEXT', 'IMAGE URL'); right under them.
Then, go to Censored Word List and put
RATE TEXT=IMAGE URL
for each one you make.
|
|