Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1377 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

prelaoding an images folder

Thread title: prelaoding an images folder
Closed Thread    
    Thread tools Search this thread Display Modes  
03-20-2007, 05:34 AM
#1
mmorales is offline mmorales
Status: Senior Member
Join date: Jul 2004
Location: Vegas
Expertise:
Software:
 
Posts: 929
iTrader: 1 / 100%
 

mmorales is on a distinguished road

Send a message via AIM to mmorales

  Old  prelaoding an images folder

anyway to preload images within a folder without having to list them out like usual with onload?

03-20-2007, 10:31 AM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

For a start, you don't want to be preloading images after the onload event has fired -- that's entirely against the point of preloading. You can't automatically specify a folder and have all images (or files) within there preloaded, but you could make it easy by using PHP (or another server-side technology) to spit out the names of the required files into you JavaScript (or CSS) preloading mechanism.

03-20-2007, 03:36 PM
#3
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Well, if you are using the images you want to preload for rollovers, I suggest making the mouse-out image (original) and the hover image side by side on the same image, and just use background positioning to move it. It's the fastest way of doing it.

03-29-2007, 01:30 PM
#4
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

That way its all loaded and since most sites don't preload, you don't get ugly navbars.

04-25-2007, 10:39 PM
#5
Webice is offline Webice
Status: Junior Member
Join date: Apr 2007
Location: Romania
Expertise:
Software:
 
Posts: 43
iTrader: 11 / 100%
 

Webice is on a distinguished road

  Old

There is no way to preload images with javascript from a specific folder.
You can use simple javascript preload(with onload for ex.), or you can preload images with css also : please check this site.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed