News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

js/php questions

Started by moose, July 11, 2004, 02:42:58 PM

Previous topic - Next topic

moose

i'm working on a design/coding site (in a way, like spoono.com) and i need a javascript preloader. preferably something that you can modify the colors on.

also, anybody know how to use cookies in php? i'm looking for a tutorial on it, but i can't find anything that's simple enough.
visit the pxl forums today!

[Unknown]

So, you want an image preloader?  I've heard those can have a detrimental affect on caching....

http://www.php.net/function.setcookie
Also, $_COOKIE...

-[Unknown]

moose

yeah, i want an image preloader. you know where to get one?
visit the pxl forums today!

[Unknown]

Just do something like this:

var imagesToPreload = [
  "image1.gif",
  "image2.gif"
];

for (var i = 0; i < imagesToPreload.length; i++)
{
   var temp = new Image();
   temp.src = "http://sdfdsfdfsf/images/" + imagesToPreload;
}

Or something similar.... why do you need a pre written one?

-[Unknown]

Advertisement: