ForumUp English Language Support Forum Index ForumUp English Language Support
Before asking for support:

*Check the FAQ, Guides and Tutorials
*Use a title in posts that describes your question
*Include your forum's URL
*No PM or Email support!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Welcome!

**ALWAYS include the URL to your forum in every post.**
You cannot register with a web.de or mail.ru email address at this time, due to a massive spam registering attack.
* Read the rules for signatures and avatars
* If you did not get your activation email, look here

* Click here for fast help for your questions.
Script for button rename

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    ForumUp English Language Support Forum Index -> Older posts Archives
View previous topic :: View next topic  
Author Message
kozataxakep
Member


Joined: 27 Jul 2007
Posts: 102
Location: http://halfbloodmania.forumup.com

PostPosted: Fri Oct 05, 2007 6:03 am    Post subject: Script for button rename Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
FoxLeonard
Member


Joined: 25 Feb 2007
Posts: 1258
Location: Hyperborea

PostPosted: Fri Oct 05, 2007 9:12 am    Post subject: Reply with quote

I can't get that one to work either, kozataxakep... Rolling Eyes

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
View user's profile Send private message
kozataxakep
Member


Joined: 27 Jul 2007
Posts: 102
Location: http://halfbloodmania.forumup.com

PostPosted: Fri Oct 05, 2007 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
kozataxakep
Member


Joined: 27 Jul 2007
Posts: 102
Location: http://halfbloodmania.forumup.com

PostPosted: Sat Oct 06, 2007 6:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
kozataxakep
Member


Joined: 27 Jul 2007
Posts: 102
Location: http://halfbloodmania.forumup.com

PostPosted: Sat Oct 06, 2007 6:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
jts19882
Member


Joined: 10 Jun 2007
Posts: 10

PostPosted: Sat Oct 06, 2007 6:52 am    Post subject: Reply with quote

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
View user's profile Send private message
jts19882
Member


Joined: 10 Jun 2007
Posts: 10

PostPosted: Sat Oct 06, 2007 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message
gg'ssimon
ForumUp World-Wide Admin
<b>ForumUp World-Wide Admin</b>


Joined: 13 Nov 2005
Posts: 7838
Location: USA (ForumUp World-wide Admin )

PostPosted: Sun Oct 07, 2007 1:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    ForumUp English Language Support Forum Index -> Older posts Archives All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


View posts since last visit / View your posts


Powered by phpBB © 2001, 2005 phpBB Group

Powered by forumup.com free forum, create your free forum!
Created by Raulken of Hyarbor S.r.l.
TOS & Privacy.

Page generation time: 0.07