In article <98p4a1$mbn$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Lars Falsig") wrote:
> I need to preload lots of graphics for user-controlled animation, changing
> graphics fast.
> Include() and/or require() works to slow.
>
> Any suggestions?
You can't do that with PHP as it's *server-side* scripting language.
Image caching must be done client-side, using for example JavaScript.
Try this in the HEAD section of your HTML page:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
if (document.images)
{
img01 = new Image();
img01.src = "path/to/your/image.gif";
img02 = new Image();
img02.src = "path/to/your/other_image.gif";
// and so on...
}
// -->
</SCRIPT>
- Visa
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]