Skeelo
03-28-2001, 03:10 PM
I've got a website with a fairly large image and flash animation, does anyone know how I could preload both? Maybe with some javascript or something of the like? Thanks.
|
Click to See Complete Forum and Search --> : Preloading images and flash Skeelo 03-28-2001, 03:10 PM I've got a website with a fairly large image and flash animation, does anyone know how I could preload both? Maybe with some javascript or something of the like? Thanks. richardginn 03-28-2001, 05:42 PM one thing about those animations. People hate large ones. They have to be straight and to the point. ------------------ www.geocities.com/richardginn/templatehtml (http://www.geocities.com/richardginn/templatehtml) -Come visit the Template HTML homepage SBC member Milkman 03-29-2001, 07:48 PM You do not need to preload the flash and images unless you have some large intro, because they will load together on your page. The one thing that people hate are large flash movies or intros. I would suggest having an entry page where the visitor has the option to enter the plain html site, a flash version of the site, or a smaller version for low bandwith users. preload for images (mostly used for image swaps or loading images during introductions) <head> <title>etc... <script language="JavaScript"> function preload() {var image1=new Image() image1.src="the place of the first image to preload" //for more images, just continue the list (image2etc.) } </script> call the above function in an onload event <onLoad="preload()"> preload flash (not sure if this works) <script language="JavaScript"> function preload() { var flash1=new arg() flash1.src="where your flash is" } </script> hope this helps. ------------------ "There are two steps to success: 1. Never tell everything you know 2. See #1" Skeelo 03-30-2001, 02:36 PM My flash isn't that big...check it out www.defacetheworld.com. (http://www.defacetheworld.com.) Milkman I currently have that javascript in there but it doesn't work...the images still show up before loaded. That script has to load the images on a pre-page, I want to preload on the actual page. Widget 04-01-2001, 04:00 PM There's an html command to make sure that the image is the first thing loaded - before all the text, I just can't remember what it is - sorry, but there is definitely one. use <FIG> instead of <IMG> to load the img last. - W. ------------------ The Dedicated Computer Music Site. http://www.pcmusic.co.za SharkyExtreme.com
Copyright Internet.com Inc. All Rights Reserved. |