I didn't know if anyone would need this or not. I'm not the best at js but i made this.

Code:
function preloader()
{
	img_1 = new Image();
	img_1.src = "../image/buttons_r1_c1_f2.png";
	
	img_2 = new Image();
	img_2.src = "../image/buttons_r2_c1_f2.png";
	
	img_3 = new Image();
	img_3.src = "../image/buttons_r5_c1_f2.png";
	
	img_4 = new Image();
	img_4.src = "../image/buttons_r6_c1_f2.png";
	
	img_5 = new Image();
	img_5.src = "../image/buttons_r8_c1_f2.png";
	
	img_6 = new Image();
	img_6.src = "../image/buttons_r10_c1_f2.png";
	
	img_7 = new Image();
	img_7.src = "../image/buttons_r11_c1_f2.png";
	
	img_8 = new Image();
	img_8.src = "../image/buttons_r12_c1_f2.png";
	
	img_9 = new Image();
	img_9.src = "../image/buttons_r13_c1_f2.png";
	
	img_10 = new Image();
	img_10.src = "../image/buttons_r14_c1_f2.png";
}
change file location then just add
Code:
onload = "return preloader"
to the body tag