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: Mon, 15 Feb 2010 00:52:29 +0900
- From: Dave M G <dave@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>
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Godwin, Thank you for responding. I'm fully aware of the difference between Java and Javascript. Netbeans comes with plugins to handle PHP, Javascript, CSS, HTML, and other things I find useful. For a free IDE, it's the most fully featured and easy to use that I have tried so far. Anyway, I took out more of the parenthesis and a semi colon. I was still getting Firebug errors, though. I looked them up on Google, and I found that ctrl.styles should be ctrl.style (no "s"). Now there's no more errors. So that's progress. But, it's simply not doing anything. When I click the button, it does not change the background image. It sticks with the original "green.png" image, and does not switch to the red or yellow. What I've got now is: function buttonClicked(threestate) { var images = new Array( "green.png", "yellow.png", "red.png"); var newimage = images.shift(); images.push(newimage); var ctrl = document.getElementById("radar"); ctrl.style.backgroundImage = newimage; } <input type="button" id="radar" onclick="buttonClicked('radar')" style="background-image: url(green.png);width:53px;height:53px;border:0;" value="" /> Any idea what's missing? -- Dave M G
- Follow-Ups:
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- Re: [tlug] [OT] Looking for Javascript 3-toggle button
- From: Godwin Stewart
- 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
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