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 [SOVLED]
- Date: Mon, 15 Feb 2010 02:50:43 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] [OT] Looking for Javascript 3-toggle button [SOVLED]
- 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> <20100214163038.ec76ff84.gstewart@example.com>
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Godwin, Thank you very much for your continued help and code! The current code works. At first it didn't, but I set up a console message and learned that it was indeed switching the name of the image file, but it wasn't showing up on the actual page. So the code was doing the cycling as intended, just not giving the results to the HTML page. Long story short, some more Googling revealed that the way one sets backgroundImage in Javascript is a little different than what we had been using up to now. Instead of this: ctrl.style.backgroundImage = newimage + ".png"; ... the syntax needs to be more explicit about the CSS: ctrl.style.backgroundImage = "url('" + newimage + ".png')"; Once I got that, your code works like a charm! Thanks for walking me through this. I also now see clearly the issue with passing the variable ("threestate"). Once you explained it, I realized it works the same as PHP and I kicked myself for not realizing that. Your help is much appreciated. -- Dave M G
- Follow-Ups:
- Re: [tlug] [OT] Looking for Javascript 3-toggle button [SOVLED]
- 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
- 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 [SOVLED]
- Previous by thread: Re: [tlug] [OT] Looking for Javascript 3-toggle button
- Next by thread: Re: [tlug] [OT] Looking for Javascript 3-toggle button [SOVLED]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links