I have the following in the stylesheet for my website:
My question is, will that background image be preloaded, so that it appears instantly when I make the object visible, or do I need to use some javascript to preload it?Code:#projects_menu { position: absolute; left: 98px; top: 161px; z-index: 1; width: 102px; height: 48px; font-size: 11px; overflow: hidden; border-bottom: 1px solid #165117; display: none; background: url("dropdownbg.gif"); }
If I do need to use javascript to preload it, is this all I need to do?
Thanks!Code:var dropdownbg = new Image(102, 59); dropdownbg.src = "dropdownbg.gif";



Reply With Quote


Bookmarks