I have found this line of HTML code on another website and was wondering how it worked/wether it can be used to speed things up a little.
<body onload="MM_preloadImages('../images/main/top_nav_o_04.gif','../images/main/top_nav_o_05.gif','../images/main/top_nav_o_06.gif','../images/main/top_nav_o_07.gif','../images/main/top_nav_o_08.gif','../images/main/top_nav_o_09.gif','../images/main/top_nav_o_11.gif','../images/main/top_nav_o_12.gif','../images/btn/btn_o_25.gif','../images/btn/btn_o_26.gif','../images/btn/btn_o_27.gif','../images/btn/btn_o_28.gif','../images/btn/btn_o_21.gif','../images/btn/btn_o_19.gif','../images/btn/btn_o_24.gif');loadCookie()">
If i have usderstood this correctly 14 images would be downloaded in a cookie so that they can be used on every page instead of downloading the files each time a new page is loaded.
Could someone correct me about this if i'm wrong or advise me about any other complications i might find if i used it.
Thanks in advance
Olly
<body onload="MM_preloadImages('../images/main/top_nav_o_04.gif','../images/main/top_nav_o_05.gif','../images/main/top_nav_o_06.gif','../images/main/top_nav_o_07.gif','../images/main/top_nav_o_08.gif','../images/main/top_nav_o_09.gif','../images/main/top_nav_o_11.gif','../images/main/top_nav_o_12.gif','../images/btn/btn_o_25.gif','../images/btn/btn_o_26.gif','../images/btn/btn_o_27.gif','../images/btn/btn_o_28.gif','../images/btn/btn_o_21.gif','../images/btn/btn_o_19.gif','../images/btn/btn_o_24.gif');loadCookie()">
If i have usderstood this correctly 14 images would be downloaded in a cookie so that they can be used on every page instead of downloading the files each time a new page is loaded.
Could someone correct me about this if i'm wrong or advise me about any other complications i might find if i used it.
Thanks in advance
Olly
Comment