Signature coding question
Moderator: Moderators
-
Uncle Xyzzy
- Beyond Godly

- Posts: 2679
- Joined: Wed Jun 02, 2004 1:03 am
- Location: Uh... Nowhere Set: Blue
Signature coding question
Is there any way to make my signature randomly display one of 2 images? "Unfortunately", I got my Secret Santa set and a set from Bangel back to back, and I like 'em both... so is it possible? 

-
theonlysaneone
- Moderator

- Posts: 2898
- Joined: Tue Dec 27, 2005 7:21 am
- Location: Hakazura Temple
Re: Signature coding question
Tested wrote:Is there any way to make my signature randomly display one of 2 images? "Unfortunately", I got my Secret Santa set and a set from Bangel back to back, and I like 'em both... so is it possible?
You could always make it an animation that cycles between the two every 10 seconds or so.

IDB Rater, Pink Inker
-
pipsqueeek
- PPT God

- Posts: 1842
- Joined: Mon Oct 03, 2005 4:46 pm
- Location: sleep deprivation
Re: Signature coding question
theonlysaneone wrote:Tested wrote:Is there any way to make my signature randomly display one of 2 images? "Unfortunately", I got my Secret Santa set and a set from Bangel back to back, and I like 'em both... so is it possible?
You could always make it an animation that cycles between the two every 10 seconds or so.
The only trouble with that is the danger of going over the size limit, and if you don't, the image quality likely won't be all that great.
The only option I know of would involve javascript, and I'm pretty sure that's a no-no in signatures here.
"A lot of people run a race to see who is fastest. I run to see who has the most guts." - Steve Prefontaine
I'm pretty sure that uploading two images to the same server, but then not specifying the image, makes them change upon refresh.
Say your image was saved at...
images.tested.com/sets/ppt/
And your sets were...
images.tested.com/sets/ppt/dawn.gif
images.tested.com/sets/ppt/ss.gif
Just using images.tested.com/sets/ppt/ would make either be your signature. I think that's right, but I'm not sure if it works with photobucket. It can only be worth a go I suppose.
Hmm, I'm slightly bothered now. I know someone on a different forum does it with their avatar... *ponders more*
Say your image was saved at...
images.tested.com/sets/ppt/
And your sets were...
images.tested.com/sets/ppt/dawn.gif
images.tested.com/sets/ppt/ss.gif
Just using images.tested.com/sets/ppt/ would make either be your signature. I think that's right, but I'm not sure if it works with photobucket. It can only be worth a go I suppose.
Hmm, I'm slightly bothered now. I know someone on a different forum does it with their avatar... *ponders more*
ooh! something i know the answer to.
You can definately do it for your sig, i'm not sure about your av, it might be possible but i dont think you can link them...
Anyway, this is a pm yoshi sent me which explains it (edited slightly) you can change the number of images you rotate through too, just by adding more instances and changing the number 2 to how many images you have.
then once you've done that you just use your .asp file in place of the image file.
You can definately do it for your sig, i'm not sure about your av, it might be possible but i dont think you can link them...
Anyway, this is a pm yoshi sent me which explains it (edited slightly) you can change the number of images you rotate through too, just by adding more instances and changing the number 2 to how many images you have.
Yoshi wrote:Sure.It's actually an *.asp file, which is predictably hosted on 1asphost.com. So register there, and create a new file and name it with an ASP extension. Paste this code and alter accordingly...
Code: Select all
<meta>
<%
Dim intNumber, intHow_many, intRandom
intHow_many = 2 ' Number of images to randomize
Randomize
intRandom = Rnd()
intNumber = Int(intHow_many*intRandom + 1)
Select Case intNumber
Case 1
Response.Redirect("***Image URL1***")
Case 2
Response.Redirect("***Image URL21***")
End Select %>
Hope that helps!
~Yoshi
then once you've done that you just use your .asp file in place of the image file.
-
werepup
- Honorary Member

- Posts: 1160
- Joined: Sat Jun 26, 2004 12:18 am
- Location: Wishing I was somewhere else
- Contact:
Yeah, I did mine through php I've managed to do it without even having to hardcode in the images... as long as it's within a specific folder and ends in jpg, then it can be used... if you email me (mailto:gingergnome@hotmail.com) with PPT somewhere in the table (so it doesn't get trashed) or send me a couple pics, I can set one up on my server in the next few days. 
-
DM was on fire!
- Way Beyond Godly

- Posts: 8715
- Joined: Sat Jun 05, 2004 9:10 pm
- Location: Cleveland, Georgia
- Contact:
TekTek.org has a random signature tool that you can use.
http://www.tektek.org/account/signup.vex
I studied how my friend Andi did it. Gaia's got a different way of coding as opposed to PPT.
It might give you instructions how.
Your av wouldn't be possible.
http://www.tektek.org/account/signup.vex
I studied how my friend Andi did it. Gaia's got a different way of coding as opposed to PPT.
It might give you instructions how.
Your av wouldn't be possible.

-
Uncle Xyzzy
- Beyond Godly

- Posts: 2679
- Joined: Wed Jun 02, 2004 1:03 am
- Location: Uh... Nowhere Set: Blue
-
sily_sicily
- PPT Warrior

- Posts: 992
- Joined: Tue Aug 01, 2006 11:02 pm
- Location: Somewhere over the rainbow way up high, there's a land that I heard of once in a lullaby.
Does TekTek works like werepup's one? Means like when you refresh, you see a different image?
Well if that's the case then it's great since mine is working!
Tested: Can you see yours? I can't. I think you'll have to try the img src way.
Well if that's the case then it's great since mine is working!
Tested: Can you see yours? I can't. I think you'll have to try the img src way.
<img src="http://i31.photobucket.com/albums/c379/miss_cobralover/PPT/siggie_secretsanta2006.jpg">
superb set by wisecret santa

-
Anoohilator
- Beyond Godly

- Posts: 4460
- Joined: Fri Jan 21, 2005 1:23 pm
- Location: Essex, UK "'"Set by WIS"'"
-
sily_sicily
- PPT Warrior

- Posts: 992
- Joined: Tue Aug 01, 2006 11:02 pm
- Location: Somewhere over the rainbow way up high, there's a land that I heard of once in a lullaby.
Anoohilator wrote:sily_sicily wrote:Does TekTek works like werepup's one? Means like when you refresh, you see a different image?
Well if that's the case then it's great since mine is working!![]()
Tested: Can you see yours? I can't. I think you'll have to try the img src way.
I can't see your sig change..
It does. Refresh a few more times. It's not like 121212121212. It's abit random, like 12121121221112 or something like that. So you'll have to refresh a few times for it to change...:\
I'm just wondering...do anyone else see my sig as an image, but with a little red x on the top left hand corner? I sometimes does. o.0
<img src="http://i31.photobucket.com/albums/c379/miss_cobralover/PPT/siggie_secretsanta2006.jpg">
superb set by wisecret santa

-
Uncle Xyzzy
- Beyond Godly

- Posts: 2679
- Joined: Wed Jun 02, 2004 1:03 am
- Location: Uh... Nowhere Set: Blue
-
Anoohilator
- Beyond Godly

- Posts: 4460
- Joined: Fri Jan 21, 2005 1:23 pm
- Location: Essex, UK "'"Set by WIS"'"




