vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Random text? (Thanks Marc and Wrighty) - View Topic (Page 2 of 3)Page: 1 2 3
Topic Rating: *****
Printable View
This topic was locked 23rd Mar 08 at 7:00pm by Michael
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Random text? (23rd Mar 08 at 2:09am UTC)
works for me on that test forum.
Tim
Senior Member
****
banned.

[Avatar]
The only easy day was yesterday.

Posts: 698
Status: Offline
Gender: Male
Location: Under your bed..in your closet..in your head
Age: 34
Joined:  
Reputation: 4%  


pmmsn
Re: Random text? (23rd Mar 08 at 2:14am UTC)
I think i mite have the custom title part right, wat do I put in the CT?

Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Random text? (23rd Mar 08 at 2:19am UTC)
No, it works for me fine on your test forum.
Tim
Senior Member
****
banned.

[Avatar]
The only easy day was yesterday.

Posts: 698
Status: Offline
Gender: Male
Location: Under your bed..in your closet..in your head
Age: 34
Joined:  
Reputation: 4%  


pmmsn
Re: Random text? (23rd Mar 08 at 2:23am UTC)
Weird, It doesn't show, all it shows is [w_ran].

Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Random text? (23rd Mar 08 at 2:26am UTC)
Link again?

Browser?
Tim
Senior Member
****
banned.

[Avatar]
The only easy day was yesterday.

Posts: 698
Status: Offline
Gender: Male
Location: Under your bed..in your closet..in your head
Age: 34
Joined:  
Reputation: 4%  


pmmsn
Re: Random text? (23rd Mar 08 at 2:27am UTC)
http://testforum1.virtualforums.co.uk/

The weirdest thing, i'm using Avant, in which i'v never had problems with it.

Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Random text? (23rd Mar 08 at 2:30am UTC)
http://testforum1.virtualforums.co.uk/action/view_profile/user/admin/

It's working fine for me there! {Unsure}
Tim
Senior Member
****
banned.

[Avatar]
The only easy day was yesterday.

Posts: 698
Status: Offline
Gender: Male
Location: Under your bed..in your closet..in your head
Age: 34
Joined:  
Reputation: 4%  


pmmsn
Re: Random text? (23rd Mar 08 at 2:32am UTC)
All i see everytime i f5 the page is [W ran]

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Random text? (23rd Mar 08 at 2:40am UTC)
As I've never used Avant, I do not know how it parses coding, but I believe that's the issue.

Try this:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Random Custom Titles */
  4. var ct = ["Rawr","Meow","Oink","Moo","Woof"];
  5.  
  6. var td = get('td','tag');
  7. var x = Math.floor(Math.random()*ct.length);
  8. for(i=0;i<td.length;i++){
  9. if(td[i].width=='20%'){
  10. td[i].innerHTML = td[i].innerHTML.replace(/\[w_ran\]/,ct[x]);
  11. }
  12. }
  13. //-->
  14. </script>
 

rroll.to— Shorten a link, rickroll your friends.
Tim
Senior Member
****
banned.

[Avatar]
The only easy day was yesterday.

Posts: 698
Status: Offline
Gender: Male
Location: Under your bed..in your closet..in your head
Age: 34
Joined:  
Reputation: 4%  


pmmsn
Re: Random text? (23rd Mar 08 at 2:45am UTC)
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

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Random text? (23rd Mar 08 at 2:47am UTC)
 
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. {Tongue Out}

Try this:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Random Custom Titles */
  4. var ct = new Array("Rawr","Meow","Oink","Moo","Woof");
  5.  
  6. var td = get('td','tag');
  7. var x = Math.floor(Math.random()*ct.length);
  8. for(i=0;i<td.length;i++){
  9. if(td[i].width=='20%'){
  10. td[i].innerHTML = td[i].innerHTML.replace(/\[w_ran\]/,ct[x]);
  11. }
  12. }
  13. //-->
  14. </script>
 

rroll.to— Shorten a link, rickroll your friends.
Tim
Senior Member
****
banned.

[Avatar]
The only easy day was yesterday.

Posts: 698
Status: Offline
Gender: Male
Location: Under your bed..in your closet..in your head
Age: 34
Joined:  
Reputation: 4%  


pmmsn
Re: Random text? (23rd Mar 08 at 2:55am UTC)
YAY!

It worked, thanks Marc and Wrighty. Smiley

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Random text? (23rd Mar 08 at 3:02am UTC)
 
YAY!

It worked, thanks Marc and Wrighty. Smiley


No worries. {Smile}

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: [F]Random text? (Thanks Marc and Wrighty) (23rd Mar 08 at 11:17am UTC)
What ya change?
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: [F] Random text? (Thanks Marc and Wrighty) (24th Mar 08 at 12:26am UTC)
 
What ya change?


Avant doesn't seem to understand JS classes very well. {Unsure}

rroll.to— Shorten a link, rickroll your friends.
 Printable View
Page: 1 2 3

All times are GMT+0 :: The current time is 12:44pm
Page generated in 0.5215 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums