The way I preload images is to write this in global context, so that it executes while the page loads.
var pre = new Image(); pre.src = "/site_media/images/sprite.png"; Then use <body onload> to call the code that creates the markers, so that that doesn't happen until after the page load is complete. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
