Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] [OT] Looking for Javascript 3-toggle button
- Date: Sun, 14 Feb 2010 16:10:04 +0000
- From: Godwin Stewart <gstewart@example.com>
- Subject: Re: [tlug] [OT] Looking for Javascript 3-toggle button
- References: <4B75727C.50501@example.com> <20100212154700.b2e5825e.gstewart@example.com> <4B777835.20804@example.com> <20100214110510.1f577b53.gstewart@example.com> <20100214112157.cef91bdc.gstewart@example.com> <4B78012A.10004@example.com> <20100214140416.3f7a1fda.gstewart@example.com> <4B78140A.8080108@example.com> <20100214152147.d70b7890.gstewart@example.com> <4B781C3D.4050100@example.com>
On Mon, 15 Feb 2010 00:52:29 +0900, Dave M G <dave@example.com> wrote: > Any idea what's missing? Yep. You're resetting the array containing the backgrounds every time you click on the button. Move the declaration of that array out of the function and into the main body of the javascript (which is what I gave you to start with). Also make the first element of the array the yellow background, not the green one (which is also what I gave you to start with). Otherwise, the first time you click on the button, the "new" colour will be green, which is what you already have initially. -- G. Stewart - gstewart@example.com QUARK: The sound made by a well-bred duck:Attachment: pgpAMRFKXDsyJ.pgp
Description: PGP signature
- References:
- [tlug] [OT] Looking for Javascript 3-toggle button
- From: Dave M G
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Dave M G
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Dave M G
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Dave M G
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [OT] Looking for Javascript 3-toggle button
- Next by Date: Re: [tlug] [OT] Looking for Javascript 3-toggle button
- Previous by thread: Re: [tlug] [OT] Looking for Javascript 3-toggle button
- Next by thread: Re: [tlug] [OT] Looking for Javascript 3-toggle button
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links