Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #24584
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Resizing images |
| Date | 2014-06-02 23:24 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <26967375.WbWaopnbgk@PointedEars.de> (permalink) |
| References | (7 earlier) <538b6ff2$0$6602$9b4e6d93@newsspool4.arcor-online.net> <lmhgp8$4g2$1@speranza.aioe.org> <538c4e74$0$6617$9b4e6d93@newsspool4.arcor-online.net> <lmijnb$16m$1@speranza.aioe.org> <538cd4e6$0$6613$9b4e6d93@newsspool4.arcor-online.net> |
Christoph Michael Becker wrote:
> emf wrote:
>> On 2014-06-02 06:14 Christoph Michael Becker wrote:
>>> They are talking about the height of the viewport as well.
>>
>> Thanks. Actually the code
>>
>> function imageheight() {
>> var i;
>> for (i = 0; i < document.images.length; i += 1) {
>> if (document.images[i].height === 600) { // portrait images height
>> document.images[i].height =
>> document.documentElement.clientHeight - 42; //padding + border
>> }
>> }
>> }
>> works OK with Firefox. Since the issue is not crucial, a note to the
>> effect that "This webpage is best viewed with Firefox" should do until
>> they standardize and/or implement the property.
>
> I expect document.documentElement.clientHeight to properly report the
> viewport's height in most, if not all, contemporary browsers; see
> <538a2253$0$6671$9b4e6d93@newsspool3.arcor-online.net>.
Still, none of this is necessary because there is a much better solution
with CSS (and it has been presented elsewhere). But the OP has demonstrated
that they are an aioe.org scriptkiddie-luser who thinks they know better, so
they should go right ahead implementing this nonsense. And never forget
adding the "best viewed with …" part; this will really tell everyone that
they are an expert in their field.
Fortunately, my newsreader allows me to observe the (wrong)doings of such
people from a distance, in quotations only.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Resizing images emf <emfril@gmail.com> - 2014-05-30 09:01 -0400
Re: Resizing images "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-05-30 16:17 +0200
Re: Resizing images Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-30 19:20 +0200
Re: Resizing images Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-30 21:51 +0200
Re: Resizing images Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-31 13:27 +0200
Re: Resizing images emf <emfril@gmail.com> - 2014-06-01 07:31 -0400
Re: Resizing images Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-01 20:24 +0200
Re: Resizing images emf <emfril@gmail.com> - 2014-06-02 05:39 -0400
Re: Resizing images Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-02 12:14 +0200
Re: Resizing images emf <emfril@gmail.com> - 2014-06-02 15:36 -0400
Re: Resizing images Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-02 21:47 +0200
Re: Resizing images Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-06-02 23:24 +0200
[FAQ Discussion] How do I find the size of the window? (was: Resizing images) Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-31 20:41 +0200
Re: [FAQ Discussion] How do I find the size of the window? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2014-05-31 22:07 +0200
Re: [FAQ Discussion] How do I find the size of the window? Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-02 14:56 +0200
csiph-web