Closed Thread Icon

Preserved Topic: IE image resizing? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18037" title="Pages that link to Preserved Topic: IE image resizing? (Page 1 of 1)" rel="nofollow" >Preserved Topic: IE image resizing? <span class="small">(Page 1 of 1)</span>\

 
Guyo
Paranoid (IV) Inmate

From: FL, USA
Insane since: May 2001

posted posted 07-17-2001 21:23

can IE or NS dynamically change the size of an image? if not, that would be a cool feature

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-17-2001 21:33

IE can (Image.width, Image.height), but NN can't (at least not simply or quickly). Not sure about Mozilla.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-17-2001 21:36

IE can but NN can not.

Note this is the same as using HTML to resize an image so the quality is going to change with

This article while older discusses the method


And actually it can be done in NN by rewriting the HTML.
REmember it's not the best method but you can accomplish most tasks by dynamically rewriting the actual HTML however this is extremely processor intensive.


Walking the Earth like Kane

[This message has been edited by bitdamaged (edited 07-17-2001).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-17-2001 21:38

one of those same time posts eh Slime?


Walking the Earth like Kane

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-17-2001 22:36

Either that, or you felt the need to reiterate what I said in more detail. =)

BTW, that rewriting the html trick in NN does resize the image, but it can't be done quickly multiple times, for like an animation or something, it just isn't fast enough. And it has to be in a layer by itself. If you don't mind those two conditions, then just document.write to the layer.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-17-2001 22:51

In IE5+ and Mozilla, you can use DOM to directly access image, like this:

<IMG SRC="max.jpg" WIDTH="100" HEIGHT="100" BORDER="0" ID="maxPic">

document.getElementById("maxPic").setAttribute("width", 200);
document.getElementById("maxPic").setAttribute("height", 200);

Guyo
Paranoid (IV) Inmate

From: FL, USA
Insane since: May 2001

posted posted 07-17-2001 23:14

hhmmm.....interesting

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-18-2001 00:08

setAttribute ?! Cool, never seen that before! That's neat... Is that in the w3c standard, or just a nice little thing IE and Mozilla simultaneously did?

psych3
Nervous Wreck (II) Inmate

From: Australia
Insane since: Feb 2001

posted posted 07-18-2001 03:05

setAttribute is a W3c standard

~~~~~~~~~~~~~~
Eddie Traversa http://dhtmlnirvana.com/
~~~~~~~~~~~~~~
Dynamic XHTML Developers Guide
By Jeff Rouyer & Eddie Traversa
Pre-order From Amazon
http://www.amazon.com/exec/obidos/ASIN/1887902546/dhtmlnirvana-20
~~~~~~~~~~~~~~~

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-18-2001 15:48

Mr. Max's code in an example: Resize example.

Which made me notice, Mr. Max - when you PREVIEW a page in HTML Beauty, it always opens a new window. How about an option to open in a new window or existing window?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-18-2001 17:46

That would require using DDE to open web browser and I don't want to use DDE (at least, not yet).

« BackwardsOnwards »

Show Forum Drop Down Menu