Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8047
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!news.xs4all.nl!not-for-mail |
|---|---|
| Date | Sat, 05 Nov 2011 17:15:29 +0100 |
| From | Luuk <Luuk@invalid.lan> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Code not working |
| References | <11359e10-c765-4434-ae51-703c99b5d60f@x36g2000prb.googlegroups.com> |
| In-Reply-To | <11359e10-c765-4434-ae51-703c99b5d60f@x36g2000prb.googlegroups.com> |
| X-Enigmail-Version | 1.3.2 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <r14go8-eub.ln1@luuk.invalid.lan> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 80.101.116.74 |
| X-Trace | 1320510001 news2.news.xs4all.nl 6841 80.101.116.74:45897 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:8047 |
Show key headers only | View raw
On 05-11-2011 16:41, Mclaren Fan wrote:
> <html>
> <head>
> <title>a</title>
> </head>
> <body bgColor="white">
> <script type="text/javscript">
you are missing an 'a' in 'javascript'
> function toogle() {
> if (document.bgColor=='white') {
this will no be true, because document.bgColor will be '#ffffff' after
the page is loaded, because you set it to 'white'.......
> document.bgColor='red';
> }
> else if (document.bgColor=='red') {
> document.bgColor='blue';
> }
> else {
> document.bgColor='green';
> }
> }
> </script>
> Change Color
> <input type="button" onClick="toogle()" value="change">
> </body>
> </html>
> Not working the above code should change background color like a
> toogler pleasehelp
--
Luuk
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Code not working Mclaren Fan <himanshu1495@gmail.com> - 2011-11-05 08:41 -0700
Re: Code not working williamc <temp4@williamc.com> - 2011-11-05 12:10 -0400
Re: Code not working Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-11-05 17:19 +0100
Re: Code not working Luuk <Luuk@invalid.lan> - 2011-11-05 17:15 +0100
Re: Code not working "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-05 19:56 +0200
Re: Code not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-05 21:34 +0100
Re: Code not working "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-05 23:11 +0200
Re: Code not working Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-06 01:06 +0100
Re: Code not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-06 21:11 +0100
Re: Code not working "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-06 22:59 +0200
Re: Code not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-07 00:12 +0100
Re: Code not working Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-06 19:53 +0000
Re: Code not working Mike Duffy <Use_guestbook_page@website.in.sig> - 2011-11-07 02:54 +0000
Re: Code not working Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-05 23:58 +0000
Re: Code not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-08 21:43 +0100
Re: Code not working Dr J R Stockton <reply1144@merlyn.demon.co.uk> - 2011-11-06 19:39 +0000
csiph-web