// 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] = "9508.jpg"; pictureArray[48] = "9509.jpg"; pictureArray[49] = "9510.jpg"; pictureArray[50] = "9511.jpeg"; pictureArray[51] = "9512.jpeg"; pictureArray[52] = "9513.jpeg"; pictureArray[53] = "9515.jpeg"; pictureArray[54] = "9516.jpg"; pictureArray[55] = "9517.jpg"; pictureArray[56] = "9518.jpg"; pictureArray[57] = "9519.jpg"; pictureArray[58] = "9520.jpeg"; pictureArray[59] = "9521.jpeg"; pictureArray[60] = "9522.jpeg"; pictureArray[61] = "9525.jpg"; pictureArray[62] = "9526.jpg"; pictureArray[63] = "9528.jpg"; pictureArray[64] = "9529.jpg"; pictureArray[65] = "9530.jpg"; pictureArray[66] = "9531.jpeg"; pictureArray[67] = "9536.jpg"; pictureArray[68] = "9538.jpg"; pictureArray[69] = "9539.jpg"; pictureArray[70] = "9540.jpg"; pictureArray[71] = "9541.jpg"; pictureArray[72] = "9542.jpeg"; pictureArray[73] = "9544.jpeg"; pictureArray[74] = "9545.jpeg"; pictureArray[75] = "9546.jpeg"; pictureArray[76] = "9547.jpg"; pictureArray[77] = "9548.jpg"; pictureArray[78] = "9549.jpg"; pictureArray[79] = "9550.jpg"; pictureArray[80] = "9551.jpg"; pictureArray[81] = "9552.jpeg"; pictureArray[82] = "9553.jpg"; pictureArray[83] = "9554.jpg"; pictureArray[84] = "9555.jpg"; pictureArray[85] = "9561.jpg"; pictureArray[86] = "9562.jpeg"; pictureArray[87] = "9565.jpg"; pictureArray[88] = "9566.jpg"; pictureArray[89] = "9567.jpg"; pictureArray[90] = "9568.jpg"; pictureArray[91] = "9569.jpg"; pictureArray[92] = "9570.jpg"; pictureArray[93] = "9576.jpeg"; pictureArray[94] = "9578.jpeg"; pictureArray[95] = "9579.jpeg"; pictureArray[96] = "9580.jpg"; pictureArray[97] = "9581.jpg"; pictureArray[98] = "9582.jpg"; pictureArray[99] = "9583.jpg"; pictureArray[100] = "9585.jpg"; pictureArray[101] = "9586.jpg"; pictureArray[102] = "9587.jpg"; pictureArray[103] = "9588.jpg"; pictureArray[104] = "9589.jpg"; pictureArray[105] = "9590.jpeg"; pictureArray[106] = "9591.jpeg"; pictureArray[107] = "9592.jpg"; pictureArray[108] = "9593.jpg"; pictureArray[109] = "9594.jpeg"; pictureArray[110] = "9595.jpg"; pictureArray[111] = "9597.jpg"; pictureArray[112] = "9599.jpg"; pictureArray[113] = "9601.jpg"; pictureArray[114] = "9602.jpg"; pictureArray[115] = "9603.jpg"; pictureArray[116] = "9604.jpg"; pictureArray[117] = "9605.jpg"; pictureArray[118] = "9607.jpg"; pictureArray[119] = "9608.jpg"; pictureArray[120] = "9610.jpg"; pictureArray[121] = "9612.jpg"; pictureArray[122] = "9613.jpeg"; pictureArray[123] = "9614.jpg"; pictureArray[124] = "9615.jpg"; pictureArray[125] = "9616.jpg"; pictureArray[126] = "9617.jpg"; pictureArray[127] = "9618.jpeg"; pictureArray[128] = "9619.jpg"; pictureArray[129] = "9620.jpg"; pictureArray[130] = "9621.jpg"; pictureArray[131] = "9622.jpg"; pictureArray[132] = "9623.jpg"; pictureArray[133] = "9624.jpg"; pictureArray[134] = "9628.jpg"; pictureArray[135] = "9629.jpeg"; pictureArray[136] = "9636.jpg"; pictureArray[137] = "9637.jpg"; pictureArray[138] = "9639.jpg"; pictureArray[139] = "9640.jpg"; pictureArray[140] = "9641.jpg"; pictureArray[141] = "9642.jpg"; pictureArray[142] = "9646.jpeg"; pictureArray[143] = "9647.jpeg"; pictureArray[144] = "9648.jpg"; pictureArray[145] = "9651.jpg"; pictureArray[146] = "9652.jpg"; pictureArray[147] = "9653.jpg"; pictureArray[148] = "9655.jpg"; pictureArray[149] = "9656.jpg"; pictureArray[150] = "9657.jpg"; pictureArray[151] = "9659.jpg"; pictureArray[152] = "9660.jpg"; pictureArray[153] = "9661.jpg"; pictureArray[154] = "9662.jpg"; pictureArray[155] = "9664.jpg"; pictureArray[156] = "9665.jpeg"; pictureArray[157] = "9667.jpeg"; pictureArray[158] = "9668.jpeg"; pictureArray[159] = "9670.jpeg"; pictureArray[160] = "9673.jpg"; pictureArray[161] = "9675.jpeg"; pictureArray[162] = "9676.jpeg"; pictureArray[163] = "9677.jpg"; pictureArray[164] = "9678.jpg"; pictureArray[165] = "9681.jpg"; pictureArray[166] = "9682.jpg"; pictureArray[167] = "9683.jpg"; pictureArray[168] = "9689.jpg"; pictureArray[169] = "9690.jpg"; pictureArray[170] = "9691.jpg"; pictureArray[171] = "9693.jpg"; pictureArray[172] = "9694.jpeg"; pictureArray[173] = "9695.jpg"; pictureArray[174] = "9698.jpg"; pictureArray[175] = "9699.jpg"; pictureArray[176] = "9707.jpg"; pictureArray[177] = "9710.jpg"; pictureArray[178] = "9712.jpg"; pictureArray[179] = "9713.jpg"; pictureArray[180] = "9714.jpg"; pictureArray[181] = "9718.jpg"; pictureArray[182] = "9721.jpg"; pictureArray[183] = "9722.jpg"; pictureArray[184] = "9723.jpg"; pictureArray[185] = "9724.jpg"; pictureArray[186] = "9726.jpg"; pictureArray[187] = "9727.jpg"; pictureArray[188] = "9729.jpg"; pictureArray[189] = "9730.jpg"; pictureArray[190] = "9731.jpg"; pictureArray[191] = "9734.jpg"; pictureArray[192] = "9737.jpg"; pictureArray[193] = "9741.jpg"; pictureArray[194] = "9745.jpg"; pictureArray[195] = "9746.jpg"; pictureArray[196] = "9747.jpg"; pictureArray[197] = "9750.jpg"; pictureArray[198] = "9752.jpg"; pictureArray[199] = "9753.jpg"; pictureArray[200] = "9756.jpg"; pictureArray[201] = "9757.jpg"; pictureArray[202] = "9759.jpg"; pictureArray[203] = "9763.jpg"; pictureArray[204] = "9764.jpeg"; pictureArray[205] = "9765.jpg"; pictureArray[206] = "9766.jpg"; pictureArray[207] = "9770.jpeg"; pictureArray[208] = "9774.jpg"; pictureArray[209] = "9776.jpg"; pictureArray[210] = "9777.jpg"; pictureArray[211] = "9778.jpg"; pictureArray[212] = "9779.jpg"; pictureArray[213] = "9780.jpg"; pictureArray[214] = "9782.jpg"; pictureArray[215] = "9783.jpg"; pictureArray[216] = "9784.jpg"; pictureArray[217] = "9785.jpg"; pictureArray[218] = "9787.jpg"; pictureArray[219] = "9788.jpg"; pictureArray[220] = "9790.jpg"; pictureArray[221] = "9791.jpg"; pictureArray[222] = "9795.jpg"; pictureArray[223] = "9796.jpg"; pictureArray[224] = "9797.jpg"; pictureArray[225] = "9800.jpg"; pictureArray[226] = "9804.jpg"; pictureArray[227] = "9805.jpg"; pictureArray[228] = "9806.jpg"; pictureArray[229] = "9807.jpg"; pictureArray[230] = "9808.jpg"; pictureArray[231] = "9809.jpg"; pictureArray[232] = "9814.jpg"; pictureArray[233] = "9816.jpg"; pictureArray[234] = "9817.jpg"; pictureArray[235] = "9818.jpg"; pictureArray[236] = "9819.jpg"; pictureArray[237] = "9823.jpg"; pictureArray[238] = "9824.jpg"; pictureArray[239] = "9825.jpg"; pictureArray[240] = "9826.jpg"; pictureArray[241] = "9827.jpg"; pictureArray[242] = "9828.jpg"; pictureArray[243] = "9829.jpg"; pictureArray[244] = "9830.jpg"; pictureArray[245] = "9831.jpg"; pictureArray[246] = "9837.jpg"; pictureArray[247] = "9838.jpg"; pictureArray[248] = "9839.jpg"; pictureArray[249] = "9840.jpg"; pictureArray[250] = "9841.jpg"; pictureArray[251] = "9842.jpg"; pictureArray[252] = "9844.jpeg"; pictureArray[253] = "9850.jpg"; pictureArray[254] = "9851.jpg"; pictureArray[255] = "9852.jpg"; pictureArray[256] = "9853.jpg"; pictureArray[257] = "9859.jpg"; pictureArray[258] = "9860.jpg"; pictureArray[259] = "9861.jpg"; pictureArray[260] = "9862.jpg"; pictureArray[261] = "9866.jpg"; pictureArray[262] = "9867.jpg"; pictureArray[263] = "9868.jpg"; pictureArray[264] = "9871.jpg"; pictureArray[265] = "9873.jpg"; pictureArray[266] = "9874.jpg"; pictureArray[267] = "9875.jpg"; pictureArray[268] = "9876.jpg"; pictureArray[269] = "9877.jpg"; pictureArray[270] = "9879.jpg"; pictureArray[271] = "9880.jpg"; pictureArray[272] = "9882.jpg"; pictureArray[273] = "9883.jpeg"; pictureArray[274] = "9885.jpeg"; pictureArray[275] = "9887.jpg"; pictureArray[276] = "9888.jpg"; pictureArray[277] = "9889.jpg"; pictureArray[278] = "9892.jpeg"; pictureArray[279] = "9893.jpeg"; pictureArray[280] = "9894.jpg"; pictureArray[281] = "9896.jpg"; pictureArray[282] = "9907.jpg"; pictureArray[283] = "9908.jpg"; pictureArray[284] = "9915.jpg"; pictureArray[285] = "9917.jpg"; pictureArray[286] = "9918.jpg"; pictureArray[287] = "9919.jpg"; pictureArray[288] = "9920.jpg"; pictureArray[289] = "9923.jpg"; pictureArray[290] = "9927.jpg"; pictureArray[291] = "9928.jpg"; pictureArray[292] = "9929.jpg"; pictureArray[293] = "9936.jpg"; pictureArray[294] = "9937.jpg"; pictureArray[295] = "9939.jpg"; pictureArray[296] = "9949.jpg"; pictureArray[297] = "9953.jpg"; pictureArray[298] = "9954.jpg"; pictureArray[299] = "9955.jpg"; pictureArray[300] = "9956.jpg"; pictureArray[301] = "9958.jpg"; pictureArray[302] = "9962.jpeg"; pictureArray[303] = "9964.jpg"; pictureArray[304] = "9965.jpg"; pictureArray[305] = "9966.jpg"; pictureArray[306] = "9967.jpg"; pictureArray[307] = "9977.jpg"; pictureArray[308] = "9978.jpg"; pictureArray[309] = "9980.jpg"; pictureArray[310] = "9981.jpg"; pictureArray[311] = "9986.jpg"; pictureArray[312] = "9987.jpg"; pictureArray[313] = "9988.jpg"; pictureArray[314] = "9990.jpeg"; pictureArray[315] = "9993.jpg"; pictureArray[316] = "9994.jpeg"; pictureArray[317] = "9995.jpg"; pictureArray[318] = "9996.jpg"; pictureArray[319] = "9999.jpg"; pictureArray[320] = "10000.jpeg"; pictureArray[321] = "10006.jpg"; pictureArray[322] = "10014.jpg"; pictureArray[323] = "10016.jpg"; pictureArray[324] = "10018.jpg"; pictureArray[325] = "10019.jpg"; pictureArray[326] = "10026.jpg"; pictureArray[327] = "10027.jpg"; pictureArray[328] = "10028.jpg"; pictureArray[329] = "10029.jpg"; pictureArray[330] = "10030.jpg"; pictureArray[331] = "10031.jpg"; pictureArray[332] = "10033.jpg"; pictureArray[333] = "10035.jpg"; pictureArray[334] = "10036.jpg"; pictureArray[335] = "10038.jpg"; pictureArray[336] = "10039.jpeg"; pictureArray[337] = "10040.jpeg"; 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; } }