SMF For Free Support Forum
Signup For Free Forum
December 05, 2008, 05:26:03 am *
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: [Code] How to make doubled sided image names  (Read 620 times)
0 Members and 1 Guest are viewing this topic.
mintkiller
SMF For Free Newbie
*
Offline Offline

Posts: 17


View Profile
« on: July 31, 2008, 06:11:49 am »

pin if possible Cheesy!

SECTION 1

A double sided name guide follow it to see what i mean

here's a picture of what i mean



right you want to know how to do that?

heres the code to make a double sided name

Put this in your HEADER if you don't already have it:

Code:
<script src="/jquery.js"></script>

Put this in your FOOTER:

Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == 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>

right all you need to change is the 'NAME' bit to the name of the person who you want to double image
its caps sensitive so make sure you get it right Cheesy then you will see two 'IMAGE URL' bits fill the both with the same image or change them to one image one side and another image another side.

then change 'COLOUR' to the colour you want the name to be.

thats how you make a double sided icon but i bet your wondering how to add two people instead of putting the code again i will explain that in section two.

The codes credit is 100% agent moose i do not take credit for the code.

SECTION 2

This is how you make a two people without putting the code in again well all you do is add this

vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

underneath the the first

vfour[vfour.length] = ["NAME","<img src='IMAGE URL'/>NAME<img src='IMAGE URL'/>","COLOR",""];

you can have as many as you like so go wild Tongue

i will take 50% credit for working this code out but 50% credit to the how to make the runescape crown guide since i worked it out from that.

i will take 100% credit for writing this whole guide

also thanks agent moose it helped alot Cheesy!!!!!

hope you guys like aswell as me!

post if you have any problems getting it work since i might be able to answer what you have done wrong. Cheesy
« Last Edit: October 02, 2008, 03:33:10 pm by simply sibyl » Logged



A Funny animation made by me :
Ineedrsforum
SMF For Free Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #1 on: October 10, 2008, 07:05:23 pm »

Isnt working for me....
I posted it:
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>NAME<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];
but still not working! Cry Cry Cry Cry
Logged
LaundryLady
Global Moderator
*
Offline Offline

Posts: 3083


Multi-Tasking Maven


View Profile
« Reply #2 on: October 11, 2008, 11:06:12 am »

When you are having problems with codes it is really helpful to post the following:

1.  Your forum URL
2.  The code exactly as you have it set in your forum, including any changes you made for it.

It is also very helpful to leave the code in place on your forum so we can go look at what's happening.

Thanks
Logged
simply sibyl
Female Type
Global Moderator
*
Offline Offline

Posts: 9429


Please do not PM for Support


View Profile WWW
« Reply #3 on: October 11, 2008, 12:21:53 pm »

Isnt working for me....
I posted it:
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>NAME<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];
but still not working! Cry Cry Cry Cry

do this:

Code:
<script>
function name_across_board(){
//Created by Agent Moose (smcodes.smfforfree3.com)
var vfour = new Array()
vfour[vfour.length] = ["Mod Jake","<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>Mod Jake<img src='http://i137.photobucket.com/albums/q232/LaundryLady1947/Runescape/mod_gold.gif'/>","yellow",""];

for(f=0;f<vfour.length;f++){
$("a[href*='u=']").each(function() {
if(this.innerHTML == 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>


Make sure you have this in your header:

Code:
<script src="/jquery.js"></script>

Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.208 seconds with 17 queries.