var i = 0; var list = new Array(); list[i++] = 'GOLD 1107.8/07:17:01 '; list[i++] = 'OIL 79.91/07:14:54 '; list[i++] = 'EURUSD 1.364/07:18:45 '; list[i++] = 'EURPLN 3.879/07:16:40 '; list[i++] = 'EURGBP 0.91/07:19:05 '; list[i++] = 'USDPLN 2.842/07:18:28 '; list[i++] = 'AUDUSD 0.914/07:18:52 '; list[i++] = 'USDJPY 90.33/07:17:33 '; list[i++] = 'GBPUSD 1.498/07:19:06 '; list[i++] = 'USDCAD 1.025/07:18:28 '; list[i++] = 'EURJPY 123.25/07:19:06 '; list[i++] = 'EURCHF 1.461/07:18:46 '; list[i++] = 'USDCHF 1.07/07:18:28 '; list[i++] = 'SILVER 16.84/07:19:06 '; var scrollId = 'pasekWalut'; // prepare node structure // function loadStructure() { // div 4 frame - user defined // var scroll = document.getElementById(scrollId); if (scroll == null) return; // add cliping outside frame // scroll.style.cssText = scroll.style.cssText + '; overflow: hidden;'; var children = scroll.childNodes; while (children.length > 0) scroll.removeChild(children[0]); // add sliding div inside frame // var innerScroll = document.createElement('div'); innerScroll.style.width = '10000px'; innerScroll.style.marginLeft = (scroll.clientWidth+10)+'px'; scroll.appendChild(innerScroll); // add floating div-containers 4 list elements // // for (var j in list) { for (j=0;j