SMF For Free Support Forum
Signup For Free Forum
March 16, 2010, 01:52:14 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: These codes for crowns dont work :(  (Read 420 times)
0 Members and 1 Guest are viewing this topic.
Didnt--Do--It5
SMF For Free Full Member
*
Offline Offline

Posts: 176


I KILL YOU IN 1 POKE!


View Profile
« on: July 08, 2009, 12:02:12 pm »

Why wont this code for crowns work?

Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Ste7720","Ste7720","Yellow","<img
src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/deleteafteriu0.png' />"];
vfour[vfour.length] = ["Heavenlyrune","Heavenlyrune","Green","<img src='http://i341.photobucket.com/albums/o395/jennawutz/crowns/green.png' />"];
vfour[vfour.length] = ["Isael2","Isael2","Yellow","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/deleteafteriu0.png' />"];
for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
Logged

QUICK LOOK BEHIND YOU! 

1.  Could be death
2.  Could be 1 million dollars
3.  Could be 3 hot chicks(even megan fox ^.^)
4.  Could be a Mustang.
5.  Could be a pile of crap.
6.  Could be your messy room.
7.  Or could be me with a sawed of shotgun pointing at your face. 

Any questions? :
Didnt--Do--It5
SMF For Free Full Member
*
Offline Offline

Posts: 176


I KILL YOU IN 1 POKE!


View Profile
« Reply #1 on: July 08, 2009, 12:26:32 pm »

Why wont this code for crowns work?

Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Ste7720","Ste7720","Yellow","<img
src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/deleteafteriu0.png' />"];
vfour[vfour.length] = ["Heavenlyrune","Heavenlyrune","Green","<img src='http://i341.photobucket.com/albums/o395/jennawutz/crowns/green.png' />"];
vfour[vfour.length] = ["Isael2","Isael2","Yellow","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/deleteafteriu0.png' />"];
for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
Logged

QUICK LOOK BEHIND YOU! 

1.  Could be death
2.  Could be 1 million dollars
3.  Could be 3 hot chicks(even megan fox ^.^)
4.  Could be a Mustang.
5.  Could be a pile of crap.
6.  Could be your messy room.
7.  Or could be me with a sawed of shotgun pointing at your face. 

Any questions? :
Seldom Fail
SMF For Free Sponsors
*
Offline Offline

Posts: 1477


Please feel free to email me ;)


View Profile WWW
« Reply #2 on: July 08, 2009, 12:27:28 pm »

Please use code tags. It is the # on your toolbar when posting.

One second while I put this code in my test forum.

Where did you place the code?
Logged

If at first you fail... call it Vista, sell it, and hope that no one notices



My Blog Wink
Seldom Fail
SMF For Free Sponsors
*
Offline Offline

Posts: 1477


Please feel free to email me ;)


View Profile WWW
« Reply #3 on: July 08, 2009, 12:31:35 pm »

You already posted this in General Support. And it's a code related problem.. not stylesheet.

One second I'm putting the code in my test forum... will have an answer for you soon.
Logged

If at first you fail... call it Vista, sell it, and hope that no one notices



My Blog Wink
Didnt--Do--It5
SMF For Free Full Member
*
Offline Offline

Posts: 176


I KILL YOU IN 1 POKE!


View Profile
« Reply #4 on: July 08, 2009, 12:33:20 pm »

Thanks IDK why it wont work.  Sad
Logged

QUICK LOOK BEHIND YOU! 

1.  Could be death
2.  Could be 1 million dollars
3.  Could be 3 hot chicks(even megan fox ^.^)
4.  Could be a Mustang.
5.  Could be a pile of crap.
6.  Could be your messy room.
7.  Or could be me with a sawed of shotgun pointing at your face. 

Any questions? :
Seldom Fail
SMF For Free Sponsors
*
Offline Offline

Posts: 1477


Please feel free to email me ;)


View Profile WWW
« Reply #5 on: July 08, 2009, 12:39:39 pm »

You had a spacing issue in the first part of the code.

Try this. It will work:
Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()

vfour[vfour.length] = ["Ste7720","Ste7720","yellow","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/deleteafteriu0.png' />"];
vfour[vfour.length] = ["Heavenlyrune","Heavenlyrune","green","<img src='http://i341.photobucket.com/albums/o395/jennawutz/crowns/green.png' />"];
vfour[vfour.length] = ["Isael2","Isael2","Yellow","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/deleteafteriu0.png' />"];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML.match(vfour[f][0])){
this.innerHTML = this.innerHTML.replace(vfour[f][0],"<font color='" + vfour[f][2] + "'>" + vfour[f][3] + vfour[f][(vfour[f][1] != "" ? 1 : 0)] + "</font>");
};});};}
name_across_board();
</script>
Logged

If at first you fail... call it Vista, sell it, and hope that no one notices



My Blog Wink
Didnt--Do--It5
SMF For Free Full Member
*
Offline Offline

Posts: 176


I KILL YOU IN 1 POKE!


View Profile
« Reply #6 on: July 08, 2009, 12:39:51 pm »

I have placed the code in footers, I have the headers code correctly though.
Logged

QUICK LOOK BEHIND YOU! 

1.  Could be death
2.  Could be 1 million dollars
3.  Could be 3 hot chicks(even megan fox ^.^)
4.  Could be a Mustang.
5.  Could be a pile of crap.
6.  Could be your messy room.
7.  Or could be me with a sawed of shotgun pointing at your face. 

Any questions? :
Seldom Fail
SMF For Free Sponsors
*
Offline Offline

Posts: 1477


Please feel free to email me ;)


View Profile WWW
« Reply #7 on: July 08, 2009, 12:39:59 pm »

http://www.smfsupport.com/support/general_support/i_need_help-t27717.0.html
Logged

If at first you fail... call it Vista, sell it, and hope that no one notices



My Blog Wink
Didnt--Do--It5
SMF For Free Full Member
*
Offline Offline

Posts: 176


I KILL YOU IN 1 POKE!


View Profile
« Reply #8 on: July 08, 2009, 12:42:18 pm »

Thanks for it has worked Smiley
Logged

QUICK LOOK BEHIND YOU! 

1.  Could be death
2.  Could be 1 million dollars
3.  Could be 3 hot chicks(even megan fox ^.^)
4.  Could be a Mustang.
5.  Could be a pile of crap.
6.  Could be your messy room.
7.  Or could be me with a sawed of shotgun pointing at your face. 

Any questions? :
simply sibyl
Global Moderator
*
Offline Offline

Posts: 13289



View Profile WWW
« Reply #9 on: July 08, 2009, 12:44:53 pm »

moved and both topics merged -  please don't make duplicate topics for the same issue
Logged



Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
ServerBeach Coupon
Page created in 0.272 seconds with 15 queries. (Pretty URLs adds 0.055s, 2q)