Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8145
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="ISO-8859-1" |
| Message-ID | <1933274.nKmheAe9J7@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Tue, 08 Nov 2011 21:43:22 +0100 |
| User-Agent | KNode/4.4.11 |
| Content-Transfer-Encoding | 7Bit |
| Subject | Re: Code not working |
| Newsgroups | comp.lang.javascript |
| References | <11359e10-c765-4434-ae51-703c99b5d60f@x36g2000prb.googlegroups.com> <4eb5cd88$0$28441$a8266bb1@newsreader.readnews.com> |
| Followup-To | comp.lang.javascript |
| MIME-Version | 1.0 |
| Lines | 29 |
| NNTP-Posting-Date | 08 Nov 2011 21:43:22 CET |
| NNTP-Posting-Host | 1d29e0b3.newsspool3.arcor-online.net |
| X-Trace | DXC=>3>YWk6f=I]5TOT9_N5i<VMcF=Q^Z^V3X4Fo<]lROoRQ8kF<OcfhCO[?F<P;FJ26_RDZm8W4\YJN\;?f@h5gMfb\l\2B]UgGPiRTV0TEgJhDYP |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:8145 |
Followups directed to: comp.lang.javascript
Show key headers only | View raw
Denis McMahon wrote:
> Mclaren Fan wrote:
>> Not working the above code should change background color like a toogler
>> pleasehelp
>
> 1) the content attribute of the script element needs to be a recognised
> script language. I've never heard of javscript!
The `script' element does not have a `content' attribute. It has a `type'
attribute, for example.
> How to find the body element:
>
> var body = document.getElementsByTagName("body")[0];
Because
var body = document.body;
is too simple, too compatible or too efficient?
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
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