Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preloading graphics in Dreamweaver 1

Status
Not open for further replies.

flasher

Technical User
Mar 4, 2002
245
US
The graphics on my pages seem to load pretty slow. Someone suggested that I use the "Preload Images" behaviour in Dreamweaver. I am confused b/c in the code I see that Dreamweaver automatically used that preload function for some of the images (maybe just for the fireworks dropdown menu images...?) and not for the rest. So how do I go about preloading the rest? Just type in the image names into the body unload tag with the ones that were there automatically? It didn't seem to make a difference.

I also tried clicking on the image and using the behaviour panel to browse and find the image... but what that did was insert a preload function ONMOUSEOVER of that image (instead of onload). And if i don't click on the image, then the preload images option will not be "available" in the behaviours panel unless you're clicked on the image.

Also my book seemed to say that this behaviour is not for all images but just for javascript and swap images, etc..

So does anyone know how I can preload all the images on my page so the page won't load in such a choppy fashion? And if this behaviour is the answer, can someone tell me exactly how to go about doing it...

Thank you very much in advance.

 
I think what you need is..

1 Select an object and open the Behavior inspector.
2 Click the plus (+) button and choose Preload Images from the Actionspop-up menu.
3 Click Browse to select an image file to preload, or enter the path and file name of an image in the Image Source File field.
4 Click the plus (+) button at the top of the dialog box to add the image to the Preload Images list.
Note: If you do not click the plus button before entering the next image, the image you have just chosen will be replaced in the list with the image you choose next.
5 Repeat steps 3 and 4 for all remaining images that you want to preload on the current page.
6 To remove an image from the Preload Images list, select the image in the list and click the minus (-) button.
7 Click OK.
8 Check that the default event is the one you want.
If it isn't, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Events For pop-up menu.

With Point 8 being what you are missing, click the dropdown button next to "OnMouseover" in behaviours and you will see lots of options. The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Preload means you preload images that are normally hidden, like rollovers. Your regular images just load. It sounds like to me that your images may be too heavy (too big - too much info). Did you create them in Fireworks? Did you optimize them? How heavy (how many kilobytes)is your page? Peace
BT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top