Preloading images using ASP?

Results 1 to 3 of 3

Thread: Preloading images using ASP?

  1. #1
    Join Date
    Dec 1969

    Default Preloading images using ASP?

    I was wondering whether anyone can answer this one for me.<BR><BR>Using Javascript you can preload images when the page loads, this is all very well when the images are static.<BR><BR>But how would you go about preloading images whose location is stored in a database table, is there any way to do this?<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Build the JavaScript..

    .. from the ASP code:<BR><BR>x = new Image(&#039;&#060;%=Replace(sImageUrl, "&#039;", "&#039;") %&#062;&#039;);<BR><BR>Like that.

  3. #3
    Join Date
    Dec 1969

    Default in the same way...

    just do something like this:<BR>blah = new Image();<BR>blah.src = &#060;%=objRS("imgSrc")%&#062;<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts