i am working on imageSlider,i have taken div and setting background-image of div. on Page load background page takes lots of time to load image. is there any way to load all background image first in cache and once loaded i can show main Div ..
i am reading xml file and then setting background-image of div one by one .
$('#myImageFlow').append('<div id="id'+k+'" alt="div'+k+'" class="sliderImage" width="280" height="310" style="visibility:hidden"> <div class="ffrontText" id="ff'+k+'">'+frontDiv[k]+'</div><div class="borderdiv" id="b'+k+'"></div><div class="borderdiv1" id="bd'+k+'"></div><div class="reflection" id="ref'+k+'"></div> <div class="overlay" id="o'+k+'"></div></div>');
Any suggestion .