Re: Preloading graphics
by Noone Special <pfarabee(at)indy.net>
|
| Date: |
Thu, 2 Apr 1998 13:41:42 -0500 (EST) |
| To: |
HWG Graphics <hwg-graphics(at)hwg.org> |
| In-Reply-To: |
westol |
| |
todo: View
Thread,
Original
|
|
> How do I preload images for a rollover script? Can I place the <IMG
> SRC=...> tag in the <HEAD></HEAD> section? Or can I do it in the
> Javascript somehow? Which method(s) are most reliable and most
This is off topic, but here ya go:
NOTE: This will give you an error in IE 2.x and 3.x You should always
check for browser compatibility if it concerns you.
In Netscape x.x, and IE 4.0:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
frame1 = new Image();
frame1.src = "http://www.blah.blah/frame1.gif";
frame2 = new Image();
frame2.src = "http://www.blah.blah/frame2.gif";
frame3 = new Image();
frame3.src = "http://www.blah.blah/frame3.gif";
frame4 = new Image();
frame4.src = "http://www.blah.blah/frame4.gif";
</SCRIPT>
</HEAD>
<BODY>
blah blah
</BODY>
</HTML>
>
> Thanks,
> Steve
> _________________________________________________________
> Steve Bassler, bassmstr(at)westol.com, WebServant(at)pdinet.org
> Visit my home page at http://www.westol.com/~bassmstr
> or the PDI Web site at http://www.pdinet.org
>
> If I stand, let me stand on the promise that You will pull me through,
> And if I can't, let me fall on the grace that first brought me to You.
> If I sing, let me sing for the joy that has borne in me these songs,
> But if I weep, let it be as a man who is longing for his home.
> - Rich Mullins, 1955-1997
>
HWG: hwg-graphics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.