2 Sides, One Mind
Moderator
Draw your sword, cut the light, Cut the moon with all your might.
Posts: 272
|
Post by 2 Sides, One Mind on Feb 4, 2004 21:05:01 GMT -5
I need help with a script if you can.
The post tag is this.... [secret=username-]text[/secret]
<script type="text/javascript"> /* Created by Cloud Modified for spoiler by A_Leon.
This code cannot be reposted (independently or with other scripts) at anywhere other than Fantasy Alliance, without express permission from its creator. This header must stay intact at all times.
http://fantasyalliance.proboards26.com/ */ var TD = document.getElementsByTagName('TD');
var Tag = new Array("[secret=","-]","[/secret]"[IMG]http://codey.so13.com/emotions/emotion2.gif[/IMG]; var TagHTML = new Array("<script>var TD = document.getElementsByTagName('TD'); if(TD[5].innerHTML.match(/username=","/i)){","}</scr'+'ipt>"[IMG]http://codey.so13.com/emotions/emotion2.gif[/IMG]; for(i=0;i<TD.length;i++){ for(j=0;j<Tag.length;j++){ if(TD[i].width=="80%" && TD[i].className.match("windowbg"[IMG]http://codey.so13.com/emotions/emotion2.gif[/IMG]){ TD[i].innerHTML = TD[i].innerHTML.replace(Tag[j],TagHTML[j]) TD[i].innerHTML = TD[i].innerHTML.replace(Tag[j+1],TagHTML[j+1]) TD[i].innerHTML = TD[i].innerHTML.replace(Tag[j+2],TagHTML[j+2]) }}} </script>
|
|
|
Post by Devil Asyerium on Feb 6, 2004 7:53:55 GMT -5
Im a n00b to Jscript so if ya can tell me what your trying to achieve then I can help out.
|
|