SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist Pixelateur's Avatar
    Join Date
    Feb 2006
    Location
    Hamburg, Germany
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Load images from a folder

    Hi,

    I am a JavaScript newbie and I want to pre-load all banner images when a user enters my site. I was wise enough to name all the images in a numerical fashion, i.e. banner1.jpg, banner2.jpg and so forth.

    I know I have to use a loop to iterate though all the images, but my JavaScript skills are way too basic. Can anybody point me to a good tutorial or provide some code so I can play with it?

    Cheers.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are lots of articles written on this subject.


Bookmarks

Posting Permissions

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