I don't know if this is possible, but i'd like a code to make like my custom title switch text, like the image randomizer.
possible?
I don't know if this is possible, but i'd like a code to make like my custom title switch text, like the image randomizer.
possible?
Would this be available to all members, or just a few that you specify?
No, it will be just for me and if any of my staff request it.
No, it will be just for me and if any of my staff request it.
I'll get to this later today; off to bed shortly.![]()
It's ok, take your time.
I know your working on this one and that image uploader in post. theres no rush.
It's ok, take your time.
I know your working on this one and that image uploader in post. theres no rush.
This one shouldn't take too long.![]()
<script>
/*Random Custom Title
Coded By Wrighty
No Ripping, Reposting or Claiming*/
var ct = {
list: ["I'm God","Rawr","Fear Me"],
d: get('td','tag'),
do: function(){
var x = Math.floor(Math.random()*ct.list.length);
for(i=0;i < this.d.length;i++){
if(this.d[i].width=='20%'){
this.d[i].innerHTML = this.d[i].innerHTML.replace(/\[w_ran\]/,this.list[x]);
}
}
}
};
ct.do();
</script>
Global Footer
Edit: list: ["I'm God","Rawr","Fear Me"],
Simply add more things in ... eg: list: ["I'm God","Rawr","Fear Me","Watch me eat you"],
Also, to add this to your profile, make your custom title: [w_ran]. Also, that can be done for anyone else that wants the same random custom title!![]()
Can I put HTML in the code? like if I want the text bold?
Yup!![]()
I just tried it on my test forum and it didn't work.
Link?
http://testforum1.virtualforums.co.uk/
If needed, you can join and i can make u staff, if needed.
recopy, vF added a ; for me!![]()
wat?
ok.
still not working![]()
works for me on that test forum.
I think i mite have the custom title part right, wat do I put in the CT?
No, it works for me fine on your test forum.
Weird, It doesn't show, all it shows is [w_ran].
Link again?
Browser?
http://testforum1.virtualforums.co.uk/
The weirdest thing, i'm using Avant, in which i'v never had problems with it.
http://testforum1.virtualforums.co.uk/action/view_profile/us er/admin/
It's working fine for me there!![]()
All i see everytime i f5 the page is [W ran]
As I've never used Avant, I do not know how it parses coding, but I believe that's the issue.
Try this:
Code:
- <script type="text/javascript">
- <!--
- /* Random Custom Titles */
- var ct = ["Rawr","Meow","Oink","Moo","Woof"];
- var td = get('td','tag');
- var x = Math.floor(Math.random()*ct.length);
- for(i=0;i<td.length;i++){
- if(td[i].width=='20%'){
- td[i].innerHTML = td[i].innerHTML.replace(/\[w_ran\]/,ct[x]);
- }
- }
- //-->
- </script>
Arrrgg Avant.
It's still not working. it's ok if you can't get it, I appreciate both of you for trying. I'll dig around in Avant and try to get to the problem.
Also, Marc, you should try Avant, i'v found it to be better than IE, FF and all the others, this is really the only problem i'v had.
Avant Browser Download
Arrrgg Avant.
It's still not working. it's ok if you can't get it, I appreciate both of you for trying. I'll dig around in Avant and try to get to the problem.
Also, Marc, you should try Avant, i'v found it to be better than IE, FF and all the others, this is really the only problem i'v had.
Avant Browser Download
I might download it to test future codes, but I doubt it'll take over as my primary browser.![]()
Try this:
Code:
- <script type="text/javascript">
- <!--
- /* Random Custom Titles */
- var ct = new Array("Rawr","Meow","Oink","Moo","Woof");
- var td = get('td','tag');
- var x = Math.floor(Math.random()*ct.length);
- for(i=0;i<td.length;i++){
- if(td[i].width=='20%'){
- td[i].innerHTML = td[i].innerHTML.replace(/\[w_ran\]/,ct[x]);
- }
- }
- //-->
- </script>
YAY!
It worked, thanks Marc and Wrighty.
YAY!
It worked, thanks Marc and Wrighty.
No worries.![]()
What ya change?
What ya change?
Avant doesn't seem to understand JS classes very well.![]()
What ya change?
Avant doesn't seem to understand JS classes very well.![]()
N00by thing.