i already did that :-)))
Thanks robert
Suhailkaleem
----- Original Message -----
From: "Abdul Majid Qazi" <majid@i...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Thursday, December 19, 2002 4:00 AM
Subject: [javascript_howto] Re: SV: opposite of pre-loading
> In Roberts code use a 1 * 1 pixel transparent image as a place holder.
This
> image will be replaced by your image when you will click the link.
>
> eg.
>
> <img id="imageOne" src="one_pixel_image.gif">
> <img id="imageTwo" src="one_pixel_image.gif">
>
>
> Majid
>
>
> ----- Original Message -----
> From: "suhailkaleem" <suhailkaleem@p...>
> To: "JavaScript HowTo" <javascript_howto@p...>
> Sent: Wednesday, December 18, 2002 3:45 PM
> Subject: [javascript_howto] Re: SV: opposite of pre-loading
>
>
> > hi !
> >
> > The code you wrote is fine but it shows cross box when the poage is
> > loaded ! i wnat to make the image invisble no cross box when users
> > clik on the link then the image loads
> > just like in hot mail when you compose email message when you click on
> > smily
> > link all the smilies image laod at that time in the layer ? how do i do
> > that ? i think it will be done by loading then in JavaScript Objects
> like
> > new image() like you said ? but you tell which will be better
> > Thanks
> > suhailkaleem
> >
> >
> > ----- Original Message -----
> > From: "Robert Nyman" <robert.nyman@c...>
> > To: "JavaScript HowTo" <javascript_howto@p...>
> > Sent: Wednesday, December 18, 2002 4:21 PM
> > Subject: [javascript_howto] SV: opposite of pre-loading
> >
> >
> > Do you want to load the images into the page so that they become
> > visible,
> > or do you want to load them into JavaScript Objects (as in new Image())?
> >
> > If you want to display them in the page when the user clicks a link,
> > you can do it something like this (which will be pretty complex if
> > you have a lot of images):
> >
> >
> > At load time:
> >
> > <img id="imageOne">
> > <img id="imageTwo"> etc
> >
> > and then when you click the link:
> >
> > function loadImages(){
> > document.getElementById("imageOne").setAttribute("src",
> > "theImageSrc.gif");
> > document.getElementById("imageTwo").setAttribute("src",
> > "theImageSrcTwo.gif");
> > // Etc...
> > }
> >
> >
> > <a href="#" onClick="loadImages(); return false">Load images</a>
> >
> >
> > /Robert
> >
> >
> >
> > -----Ursprungligt meddelande-----
> > Från: suhailkaleem [mailto:suhailkaleem@p...]
> > Skickat: den 17 december 2002 22:03
> > Till: JavaScript HowTo
> > Ämne: [javascript_howto] opposite of pre-loading
> >
> >
> > hi !
> >
> > i want to load images when users clicks on a link
> > this will help me to decrease downlaod time !
> > it is opposite to pre-loading images
> > Thanks
> > suhailkaleem
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>