AIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:41 AM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: Image swapping on loaded page
On March 19, 2003 at 6:52, Dave Sebaste wrote:
> There isn't a way to change an image on a page being displayed in a
> browser without reloading the whole page, is
On March 19, 2003 at 6:52, Dave Sebaste wrote:
> There isn't a way to change an image on a page being displayed in a
> browser without reloading the whole page, is there? Talking about
> using HTML, DHTML, scripting, etc.
You could use something like this to create a banner that rolls over four
Dave,
Yes, you can change an image without refreshing the whole page. In
javascript you can change the image src. I think it normal to preload the
images into an array for speed. Something like:
picArray = new Array();
picArray[0] = new Image();
picArray[0].src = "images/image1.GIF";
picArray[1]
Hi Dave,
> There isn't a way to change an image on a page being displayed
> in a browser without reloading the whole page, is there?
Yes, there is - it's how rollover images work, for example. The file for the
image can be read and set via the .src attribute, something like this:
document.im