| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Translation script not working on Firefox...; A simple translation code. | |
|---|---|
| Tweet Topic Started: Dec 7 2008, 07:20 PM (300 Views) | |
| Pagan Song | Dec 7 2008, 07:20 PM Post #1 |
|
Member
|
Hello, I would like to know if there is a way to make the following code to work on Firefox, because right now it only works on Internet Explorer: <script> <!-- function es(obj,obj2) { var range = document.body.createTextRange(); range.collapse(true); while (range.findText(obj)) { range.text=obj2; range.collapse(false); }} var i=1; </script> My native programing language is Delphi and thus Object Pascal, so I am still at the beginning of learning the syntax, functions and anything else used on HTML. The script consists on this function being declared at the top and then several hundreds of lines calling it with the proper arguments ( "Obj" being the word or phrase in English and "Obj2" the translated version into Spanish). It works like a charm on Internet Explorer, except for the "Portal" section, where it appears to have no effect, but it doesn't work at all on Firefox 3.0.4. Also, I would like to know how to prevent this script from translating anything posted on the Forums, because it can be very annoying to have your message modified automatically, even when you use an emoticon. Example: :grin: turns into ":grEn:", and as a result, the emoticon doesn't show. Any help will be greatly appreciated. P.S: The script is located on "Footer". Thanks in advance. Link to my board: http://z10.invisionfree.com/Our_Latin_Empire/index.php? Edited by Pagan Song, Dec 7 2008, 07:25 PM.
|
![]() |
|
| Pagan Song | Dec 9 2008, 10:03 AM Post #2 |
|
Member
|
Bump... Can anyone give me some hints about how to modify this script to solve at least the problem of this code affecting the posting area? Thanks. Edited by Pagan Song, Dec 9 2008, 10:06 AM.
|
![]() |
|
| Pagan Song | Dec 11 2008, 03:17 PM Post #3 |
|
Member
|
Bump...still needing help. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · zIFBoards - Skinning & Code Support · Next Topic » |






4:29 AM Jul 11