Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Problem on show image


Message #1 by garman@h... on Wed, 20 Sep 2000 03:51:07 +0100
> I am try to store a image on a variable, how can i display it at the
> document without define any <IMG> tag on the document??
> is it possible??

Don't think so. Not in a cross-browser way, anyway. <IMG is part of the W3C standard. In order for the HTML to be interpretted
there'd need to be an <img tag, as far as I can see. Why do you want to omit it?

> 
> var thisImg = new Image();
> thisImg.src = "image\a.gif";

That just sets up a javascript Image object with it's .src attribute set
to the URL of the image. You can't do anything with it untilo you drop it
into an IMG tag.


HTH
Daniel Walker

  Return to Index