Make a Javascript Adoptables System with Multiple Variations

Need help making a website? Coding your own adoptables? Ask questions or share knowledge here

Re: Make a Javascript Adoptables System with Multiple Variations

Postby Foxx » Fri Oct 02, 2009 12:04 pm

Ok what if your site is doing this:


//Solloby's Adoption Script //Edited by Foxx, 10/1/2009 var NumberOfVars = 10 var pup = new BuildArray(NumberOfVars) //Variations pup[1] = "pet1" pup[2] = "pet1" pup[3] = "pet1" pup[4] = "pet1" pup[5] = "pet1" pup[6] = "pet1" pup[7] = "pet2" pup[8] = "pet2" pup[9] = "pet2" pup[10] = "pet2" function BuildArray(size){ this.length = size for (var i = 1; i <= size; i++){ this[i] = null} return this } function getEgg(frm) { var rnd = Math.ceil(Math.random() * NumberOfVars) frm.WordBox.value = "" frm.WordBox2.value = "[img]http://i37.tinypic.com/339ktx4.jpg"%20+%20pup[rnd]%20+%20".jpg[/img]" }


If you want to see for yourself
URL: http://calicopy.webs.com
Roan(art and line art by me):
Image
User avatar
Foxx
 
Posts: 28
Joined: Sat Mar 21, 2009 4:57 pm
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variations

Postby Emlyol » Fri Dec 11, 2009 2:42 am

I'm going to go back to the one Nick posted. Seems simpler too actually......................................
Image


Fiery Gatoh wrote:Thanks to his avatar, I find it impossible to be scared of him. I just imagine Jesus sitting at a computer drinking a cup of coffee xD

(The other quote was getting old!)

Here's another from the same person!
Fiery Gatoh wrote:I just slack off and eat candy.
User avatar
Emlyol
 
Posts: 397
Joined: Wed Nov 25, 2009 6:41 am
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variations

Postby Taija » Tue Jan 12, 2010 10:38 am

Sorry, I'm looking for my bad English.

So, I have a problem with the boxes. I did everything as it is described in the manual, but it creates no text in the boxes.
I only have my picture, and including empty boxes.
Perhaps to know what's wrong? ^ ^ "
meine Lieblinge ^^
ImageImageImage
ja ich weiss mein englisch ist grottig ^^"
User avatar
Taija
 
Posts: 4
Joined: Sun Nov 30, 2008 8:26 pm
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variations

Postby Hyaenidae » Tue Jan 12, 2010 10:50 am

Freewebs does not allow javascript. You have to use another site host.
Formerly Flightlessdog, Psychosomatic Split, SkyeFeather, FateHowler
Matt :: [trans]Dude :: Furry :: Awesomesexual :: Saving Will Grahamcracker
ImageImage
Image


*

I'm semi-active on CS. I only visit briefly, maintaining my few groups and trading away for art/characters.
User avatar
Hyaenidae
 
Posts: 1183
Joined: Sat Aug 16, 2008 10:35 pm
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variat

Postby Mozzy. » Mon Apr 05, 2010 6:49 pm

Thankyou! This is so helpfull!
Image
Female (she/her)
Biomedical Scientist
House Spouse (18+)
Australian (CS +11)
━━━━━━━━━━━━━━━
Character Sales
Flight Rising
Cross-site Trade Thread
Art Shop
ImageImageImageImage
User avatar
Mozzy.
 
Posts: 6745
Joined: Sat Sep 27, 2008 7:52 pm
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variat

Postby Memories » Thu Apr 22, 2010 11:05 am

Awesome, thanks for posting this Solloby!
User avatar
Memories
 
Posts: 4667
Joined: Sun Jul 12, 2009 8:42 am
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variat

Postby pacificcc » Mon Jul 19, 2010 12:16 pm

nice.
Not online much. Click below if you wanna contact me. C;
Image
User avatar
pacificcc
 
Posts: 5697
Joined: Fri Jul 03, 2009 2:04 am
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variat

Postby Aloaei » Mon Aug 16, 2010 4:43 am

Thank You!
Image
I have an obscene obsession with watermelon dogs from 08... #notreallyaproblem
User avatar
Aloaei
 
Posts: 2170
Joined: Sun Nov 09, 2008 4:37 am
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variat

Postby Crestalia » Mon Oct 04, 2010 9:33 am

Um, do you know what you can put where with Proboards? I want to make one for my website<3
User avatar
Crestalia
 
Posts: 17487
Joined: Mon May 24, 2010 4:56 am
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Re: Make a Javascript Adoptables System with Multiple Variat

Postby melon » Mon Jan 31, 2011 9:34 pm

You know how it says 'you should have read the basic CS adoptable tutorials' and provides links to them.... well when I click the links a picture of a Moonswirl by Vampy comes up and says that it can't find the page T_T
Image

Open to art commissions for wishlist pets. PM me!

Looking for Rares List trade-ups for UR Butterbun, RBM, Cakedogs and more.
User avatar
melon
 
Posts: 1983
Joined: Tue Feb 02, 2010 9:20 pm
My pets
My items
My wishlist
My gallery
My dressups
Trade with me

Return to HTML/PHP Coding and Webdesign help

Who is online

Users browsing this forum: No registered users and 1 guest