|
Post by diesel on Oct 28, 2007 9:18:03 GMT -5
I've posted this reply in the spam forum too, thought it would be best here! To change 'Exalt | Smite' to 'Add | Remove'[/u][/color] I've tested the codes and they work perfectly, I made a clone of this forum page, and ran it with the codes ... and there's no Exalt/Smite ... it's Add/Remove! At least I know my Javascript is up to standards This one changes Smite to 'Remove' <script type="text/javascript"> //Code from http://gt-forums.co.nr //Written by dieseL //Do not steal this code var kar1 = "Remove" var x = document.getElementsByTagName('a'); for(a=0;a<x.length;a++){ if(x[a].href.match(/&type=2/i) && x[a].innerHTML.match(/Smite/i)){ x[a].innerHTML = kar1; }} </script> This one changes Exalt to 'Add' <script type="text/javascript"> //Code from http://gt-forums.co.nr //Written by dieseL //Do not steal this code var kar2 = "Add" var x = document.getElementsByTagName('a'); for(a=0;a<x.length;a++){ if(x[a].href.match(/&type=1/i) && x[a].innerHTML.match(/Exalt/i)){ x[a].innerHTML = kar2; }} </script> Please leave the copyrights
|
|
|
Post by Confusingkid on Oct 28, 2007 13:52:01 GMT -5
Global Footer I'm Guessing? Thanks man, I appreciate it.
|
|
|
Post by diesel on Oct 28, 2007 13:57:03 GMT -5
I'm not sure on proboards, but this code works 100%, just tested it again on another cloned page.
|
|
|
Post by Confusingkid on Oct 28, 2007 14:03:02 GMT -5
Okay it's good, for some reason it only copied </script on the "add" part, So i added the > and it's all good now. And the copyright isnt at the bottom of the page.
|
|
|
Post by diesel on Oct 28, 2007 14:03:50 GMT -5
Good Well it seems to be working, I just added more Karma to you Gratz
|
|