View Full Version: [S] Pm Modifier

RPG-Directory > Solved Support Topics > [S] Pm Modifier



Title: [S] Pm Modifier
Description: Only works in IE


x.Miranda.x - June 17, 2008 01:50 AM (GMT)
Okay, so I have this Harry Potter PM Modifier that I got from somewhere (don't quite remember where exactly). Anyways, the weird thing is that it works - but only in IE (Internet Explorer). In FireFox it doesn't work at all. I've pasted the code below, just in case anyone can give me an idea of what I'm doing wrong, heh.


CODE
<SCRIPT LANGUAGE="JavaScript">
//Tundra Designs
//Cg.thehostmansion.com
function change(text1,text2) {
var range = document.body.createTextRange();
range.collapse(true);
while (range.findText(text1)) {
range.text=text2;
range.collapse(false);
}}

change("Fast Reply","Reply Box");
//0
change("Inbox (0)","No New Owls");
//1
change("Inbox (1)","1 owl has arrived!");
//2
change("Inbox (2)","2 owls have arrived!");
//3
change("Inbox (3)","3 owls have arrived!");
//4
change("Inbox (4)","4 owls have arrived!");
//5
change("Inbox (5)","5 owls have arrived!");
//6
change("Inbox (6)","6 owls have arrived!");
//7
change("Inbox (7)","7 owls have arrived!");
//8
change("Inbox (8)","8 owls have arrived!");
//9
change("Inbox (9)","9 owls have arrived!")
//10
change("Inbox (10)","10 owls have arrived!");
//11
change("Inbox (11)","11 owls have arrived!");
//12
change("Inbox (12)","12 owls have arrived!");
//13
change("Inbox (13)","13 owls have arrived!");
//14
change("Inbox (14)","14 owls have arrived!");
//15
change("Inbox (15)","15 owls have arrived!");
//16
change("Inbox (16)","16 owls have arrived!");
//17
change("Inbox (17)","17 owls have arrived!");
//18
change("Inbox (18)","18 owls have arrived!");
//19
change("Inbox (19)","19 owls have arrived!");
//20

change("My Assistant","My Assistant");
change("Compose New Message","Send an Owl");
change("Go to Inbox","Go To Owlery");
change("Empty PM Folders","Destroy Owls");
change("PM Buddies/Block List","Friends and Foes");
change("Saved (Unsent) PMs","Unsent Owls");
change("Message Tracker","Owl Tracker");
change("Archive Messages","Archive Owls");
change("Messenger","Owlery");
change("Read Messages","Read Owls");
change("Unread Messages","Unread Owls");
change("Sent Items","Sent Owls");
</script>


<font color="black"><center>HP PM MODIFIER BY : <a href="http://cg.thehostmansion.com/">Tundra Designs</a></center></font>



I also wanted to add that this has been put in the footer. Thanks to anyone who can help :lol:

ShinLi - June 19, 2008 01:01 PM (GMT)
Well it happens with more codes that they only work in one browser, but not the other. You might've gotten it from ifsz, because I've got something like that from there too. You might wanna post there then, becuase they are better at giving coding support, as the code is probably from there as well. Good luck with it!

x.Miranda.x - June 20, 2008 06:25 PM (GMT)
Okay, thanks! I'll go post there now :lol:




Hosted for free by InvisionFree