// stien til en mappe hvor billederne ligger i. var url = "http://gudenaasammenslutningen.dk/billeder/statbilleder"; var pictureArray = new Array(); pictureArray[0] = "9371.jpg"; pictureArray[1] = "9372.jpg"; pictureArray[2] = "9376.jpeg"; pictureArray[3] = "9377.jpg"; pictureArray[4] = "9380.jpg"; pictureArray[5] = "9381.jpg"; pictureArray[6] = "9382.jpg"; pictureArray[7] = "9383.jpg"; pictureArray[8] = "9385.jpg"; pictureArray[9] = "9386.jpg"; pictureArray[10] = "9387.jpg"; pictureArray[11] = "9400.jpg"; pictureArray[12] = "9402.jpg"; pictureArray[13] = "9419.jpg"; pictureArray[14] = "9428.jpg"; pictureArray[15] = "9430.jpg"; pictureArray[16] = "9431.jpg"; pictureArray[17] = "9433.jpg"; pictureArray[18] = "9436.jpg"; pictureArray[19] = "9442.jpg"; pictureArray[20] = "9445.jpg"; pictureArray[21] = "9448.jpg"; pictureArray[22] = "9449.jpg"; pictureArray[23] = "9452.jpg"; pictureArray[24] = "9455.jpg"; pictureArray[25] = "9459.jpg"; pictureArray[26] = "9468.jpg"; pictureArray[27] = "9470.jpg"; pictureArray[28] = "9475.jpg"; pictureArray[29] = "9478.jpg"; pictureArray[30] = "9479.jpg"; pictureArray[31] = "9481.jpeg"; pictureArray[32] = "9482.jpg"; pictureArray[33] = "9483.jpg"; pictureArray[34] = "9484.jpg"; pictureArray[35] = "9485.jpg"; pictureArray[36] = "9488.jpg"; pictureArray[37] = "9490.jpg"; pictureArray[38] = "9491.jpg"; pictureArray[39] = "9492.jpg"; pictureArray[40] = "9493.jpg"; pictureArray[41] = "9495.jpg"; pictureArray[42] = "9497.jpg"; pictureArray[43] = "9498.jpeg"; pictureArray[44] = "9499.jpg"; pictureArray[45] = "9501.jpeg"; pictureArray[46] = "9503.jpg"; pictureArray[47] = "9505.jpeg"; pictureArray[48] = "9508.jpg"; pictureArray[49] = "9509.jpg"; pictureArray[50] = "9510.jpg"; pictureArray[51] = "9511.jpeg"; pictureArray[52] = "9512.jpeg"; pictureArray[53] = "9513.jpeg"; pictureArray[54] = "9515.jpeg"; pictureArray[55] = "9516.jpg"; pictureArray[56] = "9517.jpg"; pictureArray[57] = "9518.jpg"; pictureArray[58] = "9519.jpg"; pictureArray[59] = "9520.jpeg"; pictureArray[60] = "9521.jpeg"; pictureArray[61] = "9522.jpeg"; pictureArray[62] = "9525.jpg"; pictureArray[63] = "9526.jpg"; pictureArray[64] = "9528.jpg"; pictureArray[65] = "9529.jpg"; pictureArray[66] = "9530.jpg"; pictureArray[67] = "9531.jpeg"; pictureArray[68] = "9536.jpg"; pictureArray[69] = "9538.jpg"; pictureArray[70] = "9539.jpg"; pictureArray[71] = "9540.jpg"; pictureArray[72] = "9541.jpg"; pictureArray[73] = "9542.jpeg"; pictureArray[74] = "9544.jpeg"; pictureArray[75] = "9545.jpeg"; pictureArray[76] = "9546.jpeg"; pictureArray[77] = "9547.jpg"; pictureArray[78] = "9548.jpg"; pictureArray[79] = "9549.jpg"; pictureArray[80] = "9550.jpg"; pictureArray[81] = "9551.jpg"; pictureArray[82] = "9552.jpeg"; pictureArray[83] = "9553.jpg"; pictureArray[84] = "9554.jpg"; pictureArray[85] = "9555.jpg"; pictureArray[86] = "9561.jpg"; pictureArray[87] = "9562.jpeg"; pictureArray[88] = "9565.jpg"; pictureArray[89] = "9566.jpg"; pictureArray[90] = "9567.jpg"; pictureArray[91] = "9568.jpg"; pictureArray[92] = "9569.jpg"; pictureArray[93] = "9570.jpg"; pictureArray[94] = "9576.jpeg"; pictureArray[95] = "9578.jpeg"; pictureArray[96] = "9579.jpeg"; pictureArray[97] = "9580.jpg"; pictureArray[98] = "9581.jpg"; pictureArray[99] = "9582.jpg"; pictureArray[100] = "9583.jpg"; pictureArray[101] = "9585.jpg"; pictureArray[102] = "9586.jpg"; pictureArray[103] = "9587.jpg"; pictureArray[104] = "9588.jpg"; pictureArray[105] = "9589.jpg"; pictureArray[106] = "9590.jpeg"; pictureArray[107] = "9591.jpeg"; pictureArray[108] = "9592.jpg"; pictureArray[109] = "9593.jpg"; pictureArray[110] = "9594.jpeg"; pictureArray[111] = "9595.jpg"; pictureArray[112] = "9597.jpg"; pictureArray[113] = "9599.jpg"; pictureArray[114] = "9601.jpg"; pictureArray[115] = "9602.jpg"; pictureArray[116] = "9603.jpg"; pictureArray[117] = "9604.jpg"; pictureArray[118] = "9605.jpg"; pictureArray[119] = "9607.jpg"; pictureArray[120] = "9608.jpg"; pictureArray[121] = "9610.jpg"; pictureArray[122] = "9612.jpg"; pictureArray[123] = "9613.jpeg"; pictureArray[124] = "9614.jpg"; pictureArray[125] = "9615.jpg"; pictureArray[126] = "9616.jpg"; pictureArray[127] = "9617.jpg"; pictureArray[128] = "9618.jpeg"; pictureArray[129] = "9619.jpg"; pictureArray[130] = "9620.jpg"; pictureArray[131] = "9621.jpg"; pictureArray[132] = "9622.jpg"; pictureArray[133] = "9623.jpg"; pictureArray[134] = "9624.jpg"; pictureArray[135] = "9628.jpg"; pictureArray[136] = "9629.jpeg"; pictureArray[137] = "9636.jpg"; pictureArray[138] = "9637.jpg"; pictureArray[139] = "9639.jpg"; pictureArray[140] = "9640.jpg"; pictureArray[141] = "9641.jpg"; pictureArray[142] = "9642.jpg"; pictureArray[143] = "9646.jpeg"; pictureArray[144] = "9647.jpeg"; pictureArray[145] = "9648.jpg"; pictureArray[146] = "9651.jpg"; pictureArray[147] = "9652.jpg"; pictureArray[148] = "9653.jpg"; pictureArray[149] = "9655.jpg"; pictureArray[150] = "9656.jpg"; pictureArray[151] = "9657.jpg"; pictureArray[152] = "9659.jpg"; pictureArray[153] = "9660.jpg"; pictureArray[154] = "9661.jpg"; pictureArray[155] = "9662.jpg"; pictureArray[156] = "9664.jpg"; pictureArray[157] = "9665.jpeg"; pictureArray[158] = "9667.jpeg"; pictureArray[159] = "9668.jpeg"; pictureArray[160] = "9670.jpeg"; pictureArray[161] = "9673.jpg"; pictureArray[162] = "9675.jpeg"; pictureArray[163] = "9676.jpeg"; pictureArray[164] = "9677.jpg"; pictureArray[165] = "9678.jpg"; pictureArray[166] = "9681.jpg"; pictureArray[167] = "9682.jpg"; pictureArray[168] = "9683.jpg"; pictureArray[169] = "9689.jpg"; pictureArray[170] = "9690.jpg"; pictureArray[171] = "9691.jpg"; pictureArray[172] = "9693.jpg"; pictureArray[173] = "9694.jpeg"; pictureArray[174] = "9695.jpg"; pictureArray[175] = "9698.jpg"; pictureArray[176] = "9699.jpg"; pictureArray[177] = "9707.jpg"; pictureArray[178] = "9714.jpg"; pictureArray[179] = "9718.jpg"; pictureArray[180] = "9721.jpg"; pictureArray[181] = "9722.jpg"; pictureArray[182] = "9723.jpg"; pictureArray[183] = "9724.jpg"; pictureArray[184] = "9726.jpg"; pictureArray[185] = "9729.jpg"; pictureArray[186] = "9730.jpg"; pictureArray[187] = "9731.jpg"; pictureArray[188] = "9737.jpg"; pictureArray[189] = "9741.jpg"; pictureArray[190] = "9745.jpg"; pictureArray[191] = "9746.jpg"; pictureArray[192] = "9747.jpg"; pictureArray[193] = "9750.jpg"; pictureArray[194] = "9752.jpg"; pictureArray[195] = "9753.jpg"; pictureArray[196] = "9756.jpg"; pictureArray[197] = "9759.jpg"; pictureArray[198] = "9763.jpg"; pictureArray[199] = "9764.jpeg"; pictureArray[200] = "9765.jpg"; pictureArray[201] = "9766.jpg"; pictureArray[202] = "9770.jpeg"; pictureArray[203] = "9774.jpg"; pictureArray[204] = "9776.jpg"; pictureArray[205] = "9777.jpg"; pictureArray[206] = "9778.jpg"; pictureArray[207] = "9779.jpg"; pictureArray[208] = "9780.jpg"; pictureArray[209] = "9782.jpg"; pictureArray[210] = "9783.jpg"; pictureArray[211] = "9784.jpg"; pictureArray[212] = "9785.jpg"; var imagePreloader = new Array(); function randomPicture(interval,amount) { for (i = 1; i<=pictureArray.length; i++) { var image = new Image(); image.src = url + "/"+ pictureArray[i-1]; imagePreloader[i-1] = image; } var layout = ""; for (j = 0; j < amount; j++) { var rnd = Math.round(Math.random() * (imagePreloader.length -1)); var imgSrc = imagePreloader[rnd].src; layout += ""; } layout = '' + layout +'
'; document.write (layout); setInterval ("updateImage("+ amount +")", interval); } function updateImage(amount) { for (i = 0; i < amount; i++ ) { var rnd = Math.round(Math.random() * (imagePreloader.length -1)); var imgSrc = imagePreloader[rnd].src; document.getElementById('random_image'+i).src = imgSrc; } }