Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 01-02-2009, 09:58 AM   #1 (permalink)
Peter.Cort's Avatar
 
TF's First DICE User.

Join Date: Jul 2007

Location: Burlington VT

Posts: 3,934

Peter.Cort will become famous soon enough

Send a message via AIM to Peter.Cort Send a message via MSN to Peter.Cort Send a message via Skype™ to Peter.Cort
Default Signature Rotation Code

Hey, on some other forums for gaming (dead now ) people had lots of sigs and had a rotation going. I have no idea how to do it but it'd be html and if anybody can help me out that'd be great

Basically it was just like if i had 3 sigs i'd put in the code for all 3 and then every time you refreshed the page where I posted it would show a different sig.
__________________
MacBook Pro
C2D T8800 @ 2.66GHz | 4GB DDR3 1066MHz | 9600M GT 256MB | 320GB HDD
24" Acer B243w
Cavalry 1TB Firewire800 External
Peter.Cort is offline  
Old 01-02-2009, 12:34 PM   #2 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Signature Rotation Code

Code:
function randInt(min,max)
{
     var div = (max - min) + 1
     var randNum = Math.random()
     for (var i = 0; i <= div - 1; i++)
     {
          if (randNum >= i / div && randNum < (i+1) / div)
          {return i + min}
     }
}


var abc = randInt(1,5);

if (abc == 1) {

     document.write("<\"Your 1. HTML-Banner-Code\">");

}

if (abc == 2) {

     document.write("<\"Your 2. HTML-Banner-Code\">");

}

if (abc == 3) {

     document.write("<\"Your 3. HTML-Banner-Code\">");

}

if (abc == 4) {

     document.write("<\"Your 4. HTML-Banner-Code\">");

}

if (abc == 5) {

     document.write("<\"Your 5. HTML-Banner-Code\">");

}
Simple JavaScript I had kicking, you get the general idea

Not sure what's allowed here at T.F though and which way you wanted to do it but that's it in its bare state...

Tkey
Yek is offline  
Old 01-02-2009, 12:43 PM   #3 (permalink)
Fat.Clown's Avatar
 
Freak

Join Date: Dec 2006

Location: MN, USA

Posts: 1,481

Fat.Clown is on a distinguished road

Default Re: Signature Rotation Code

looking @ that sig, and looking at this pic....



Nosboost coulda modeled for Newegg/Corsair
__________________
Fat.Clown is offline  
Old 01-02-2009, 12:49 PM   #4 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Signature Rotation Code

Quote:
Originally Posted by Fat.Clown View Post
looking @ that sig, and looking at this pic....
Eh?

Tkey
Yek is offline  
Old 01-02-2009, 12:51 PM   #5 (permalink)
Peter.Cort's Avatar
 
TF's First DICE User.

Join Date: Jul 2007

Location: Burlington VT

Posts: 3,934

Peter.Cort will become famous soon enough

Send a message via AIM to Peter.Cort Send a message via MSN to Peter.Cort Send a message via Skype™ to Peter.Cort
Default Re: Signature Rotation Code

he's commenting that the guy in that ad looks a lot like the pic of Nos i have in my sig.

and ok, so i take the code, i know basically nothing about coding, and where it says HTML banner code, put in my image link?

and i then just want it to randomly draw upon one of the links to display a sig image.
__________________
MacBook Pro
C2D T8800 @ 2.66GHz | 4GB DDR3 1066MHz | 9600M GT 256MB | 320GB HDD
24" Acer B243w
Cavalry 1TB Firewire800 External
Peter.Cort is offline  
Old 01-02-2009, 12:56 PM   #6 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Signature Rotation Code

Yeah the script will do that for you.
You need to find a way of getting the JavaScript code into your sig though, i'm not sure what is and what isnt allowed.

Tkey
Yek is offline  
Old 01-02-2009, 01:23 PM   #7 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,418

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: Signature Rotation Code

Yeah I'm not sure if you can do that on here. You could just take three signatures and turn them into a gif.
__________________


Last edited by Baez; 01-02-2009 at 01:51 PM.
Baez is offline  
Old 01-02-2009, 01:43 PM   #8 (permalink)
Peter.Cort's Avatar
 
TF's First DICE User.

Join Date: Jul 2007

Location: Burlington VT

Posts: 3,934

Peter.Cort will become famous soon enough

Send a message via AIM to Peter.Cort Send a message via MSN to Peter.Cort Send a message via Skype™ to Peter.Cort
Default Re: Signature Rotation Code

yeah but that would make it move every like 5 seconds. I just want it to change on a refresh or a new page.
__________________
MacBook Pro
C2D T8800 @ 2.66GHz | 4GB DDR3 1066MHz | 9600M GT 256MB | 320GB HDD
24" Acer B243w
Cavalry 1TB Firewire800 External
Peter.Cort is offline  
Old 01-02-2009, 01:49 PM   #9 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Re: Signature Rotation Code

If you're allowed IFrames you could do it through that...

Or have a play with GD

Tkey
Yek is offline  
Old 01-02-2009, 01:51 PM   #10 (permalink)
Baez's Avatar
 

Join Date: Sep 2005

Location: Toronto, Canada

Posts: 5,418

Baez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of lightBaez is a glorious beacon of light

Default Re: Signature Rotation Code

Hmm try the code out then. I think it would confuse a lot of people if you made it work lol.
__________________

Baez is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Signature cards TRDCorolla1 Off Topic Discussion 4 06-15-2008 05:58 AM
PHP: How to modify a downloaded JavaScript code and partly change the code within it? LincolnX Programming Discussions 4 01-25-2008 04:25 PM
Someone take a look at my Java code PnkFloyd27 Programming Discussions 4 06-21-2007 08:11 PM
NEED help with a Javascript code...(mouseover and stuff) Quintox Web Graphics, Design, Digital Images 7 05-02-2007 06:41 PM