| View previous topic :: View next topic |
| Author |
Message |
kozataxakep Member

Joined: 27 Jul 2007 Posts: 102 Location: http://halfbloodmania.forumup.com
|
Posted: Fri Oct 05, 2007 6:03 am Post subject: Script for button rename |
|
|
Hello again !
I would like to change the name of 3 buttons.For that i need a script.I've found such somewhere in the forum and I tried to use it but it doens't work?
Here is the script:
| Code: | <script>
var index = 0;
var linktext01 = "button_real_name";
var rplctext01 = "button_replace_name";
for(index=0; index<document.links.length; index++) {
if(document.links[index].innerHTML == linktext01) {
document.links[index].innerHTML = rplctext01;
}
}
</script> |
And after that what do i have to do?Upload it to a server and the use a link into the Forum Description.
I tried that way and nothing happens.I also have another script in my forum it's for adding a button.Here comes the question.If the room in the Forum Description is full can make one document with all the scripts?Will it works ?
Also a question about the current script.If i want to rename more than one button how the script gonna look??Is that it how should look?
| Code: | <script>
var index = 0;
var linktext01 = "Memberlist";
var rplctext01 = "Магьоснци";
var linktext02 = "Usergroups";
var rplctext02 = "Магьоснически групи";
for(index=0; index<document.links.length; index++) {
if(document.links[index].innerHTML == linktext01) {
document.links[index].innerHTML = rplctext01;
if(document.links[index].innerHTML == linktext02) {
document.links[index].innerHTML = rplctext02;
}
}
</script> |
_________________ I'm faster than you.I'm stronger than you.Certainly i'll last much longer than you.You may thing I'm the future,but you're wrong.You are.I can achive immortality by not wearing out.You can achive immortality simply by doing one great thing... |
|
| Back to top |
|
 |
FoxLeonard Member
Joined: 25 Feb 2007 Posts: 1258 Location: Hyperborea
|
Posted: Fri Oct 05, 2007 9:12 am Post subject: |
|
|
I can't get that one to work either, kozataxakep...
It would be good to see the original description of it. Try to remember where you found it, because it is not the Guides and Tutorials, as far as I can see.
The way you have added more "buttons" is correct though.
No, you cannot put all scripts in one document and link to it.
FoxLeonard _________________
Only registered users can see links on this forum! Register or Login on forum! |
Svensk Support
Only registered users can see links on this forum! Register or Login on forum! |
Dansk Support
Only registered users can see links on this forum! Register or Login on forum! |
Lithuanian Support
Only registered users can see links on this forum! Register or Login on forum! |
Vietnamese Support
Only registered users can see links on this forum! Register or Login on forum! |
|
|
| Back to top |
|
 |
kozataxakep Member

Joined: 27 Jul 2007 Posts: 102 Location: http://halfbloodmania.forumup.com
|
Posted: Fri Oct 05, 2007 12:21 pm Post subject: |
|
|
Alvas gave me that script as far as remember. _________________ I'm faster than you.I'm stronger than you.Certainly i'll last much longer than you.You may thing I'm the future,but you're wrong.You are.I can achive immortality by not wearing out.You can achive immortality simply by doing one great thing... |
|
| Back to top |
|
 |
kozataxakep Member

Joined: 27 Jul 2007 Posts: 102 Location: http://halfbloodmania.forumup.com
|
Posted: Sat Oct 06, 2007 6:25 am Post subject: |
|
|
| kozataxakep wrote: | | Alvas gave me that script as far as remember. |
He said he found it here Only registered users can see links on this forum! Register or Login on forum! |
_________________ I'm faster than you.I'm stronger than you.Certainly i'll last much longer than you.You may thing I'm the future,but you're wrong.You are.I can achive immortality by not wearing out.You can achive immortality simply by doing one great thing... |
|
| Back to top |
|
 |
kozataxakep Member

Joined: 27 Jul 2007 Posts: 102 Location: http://halfbloodmania.forumup.com
|
Posted: Sat Oct 06, 2007 6:32 am Post subject: |
|
|
Also I've found a JavaScript validator
Only registered users can see links on this forum! Register or Login on forum! |
Here my script looks like it have been writen by.... a someone who has nothing to do with scripts.
I tried to fix some errors but other shows up.I'll be very pleased if this problem is resolved as fast as you can.
Thank you in advance ! _________________ I'm faster than you.I'm stronger than you.Certainly i'll last much longer than you.You may thing I'm the future,but you're wrong.You are.I can achive immortality by not wearing out.You can achive immortality simply by doing one great thing... |
|
| Back to top |
|
 |
jts19882 Member
Joined: 10 Jun 2007 Posts: 10
|
Posted: Sat Oct 06, 2007 6:52 am Post subject: |
|
|
I don't know if this is the answer, but Kana's image swap script needs a function called on loading the page.
| Code: |
<body onload="iconswap();"></body> |
Could the text swap be the same? |
|
| Back to top |
|
 |
jts19882 Member
Joined: 10 Jun 2007 Posts: 10
|
Posted: Sat Oct 06, 2007 6:58 am Post subject: |
|
|
Sorry, let me rephrase that. The image swap script needs to be in a function that is called on loading the page. |
|
| Back to top |
|
 |
gg'ssimon ForumUp World-Wide Admin

Joined: 13 Nov 2005 Posts: 7988 Location: USA (ForumUp World-wide Admin )
|
Posted: Sun Oct 07, 2007 1:18 am Post subject: |
|
|
| kozataxakep wrote: | Also I've found a JavaScript validator
Only registered users can see links on this forum! Register or Login on forum! |
Here my script looks like it have been writen by.... a someone who has nothing to do with scripts.
I tried to fix some errors but other shows up.I'll be very pleased if this problem is resolved as fast as you can.
Thank you in advance ! |
That is not a ForumUp issue. When people chose to make and use scripts to modify their forum, it is up to the person's own knowledge. Use of scripts is NOT for beginners.
The use of any scripts are at the person's own risk.
Any scripts people may have shared on this forum are NOT official ForumUp scripts. They are simply scripts people have chosen to share with others. If they work or not is up to people who know about scripts to figure out.
Maybe someone reading your posts is good with scripts and can advise you, but it is not something for ForumUp to figure out. _________________ Margaret /gg'ssimon~ForumUp World-Wide Administrator
Only registered users can see links on this forum! Register or Login on forum! |
|
|
| Back to top |
|
 |
|