7d6 < var which=0; 10,12c9 < var lefts=[0,0]; < var prevlefttwo=0, lefttwo=0, opacity=1.0, next=3; < var imageo=[], iois; --- > var lefttwo=0, opacity=1.0; 15,29c12,19 < while ('' != (location.search.split('image' + next + '=')[1] ? decodeURIComponent(location.search.split('image' + next + '=')[1].split('&')[0]) : '')) { < images.push((location.search.split('image' + next + '=')[1] ? decodeURIComponent(location.search.split('image' + next + '=')[1].split('&')[0]) : '')); < widths.push(0); < heights.push(0); < lefts.push(0); < next++; < } < < for (iois=1; iois var image1 = new Image(); > image1.onload = function () { > widths[0] = ('' + this.width).replace('px',''); // or 'width' if you want a special/scaled size > lefttwo=widths[0]; > heights[0] = ('' + this.height).replace('px',''); // or 'height' if you want a special/scaled size > document.body.innerHTML='
'; > }; > image1.src = images[0]; 31,40c21,26 < function dowhich() { < if (eval(0 + which) < imageo.length) { < imageo[which].onload = function () { < widths[this.index] = ('' + this.width).replace('px',''); // or 'width' if you want a special/scaled size < heights[this.index] = ('' + this.height).replace('px',''); // or 'height' if you want a special/scaled size < prevlefttwo=lefttwo; < lefts[this.index] = prevlefttwo; < lefttwo+=eval('' + widths[this.index]); < document.body.innerHTML+=''; < setTimeout(dowhich, 8); --- > var image2 = new Image(); > image2.onload = function () { > widths[1] = ('' + this.width).replace('px',''); // or 'width' if you want a special/scaled size > heights[1] = ('' + this.height).replace('px',''); // or 'height' if you want a special/scaled size > //document.getElementById('readyfortwo').innerHTML=''; > document.body.innerHTML+=''; 42,49c28 < imageo[which].src = images[which]; < which++; < //setTimeout(dowhich, 8000); < } else { < lefttwo=prevlefttwo; < setTimeout(creep,1500); < } < } --- > image2.src = images[1]; 52d30 < var inext, ourlt=0, offset=0; 57,60c35,36 < for (inext=eval(-1 + next); inext>=2; inext--) { < document.getElementById('i' + inext).style.left=lefttwo + 'px'; < document.getElementById('i' + inext).style.opacity=opacity; < } --- > document.getElementById('i2').style.left=lefttwo + 'px'; > document.getElementById('i2').style.opacity=opacity; 62,76c38,42 < for (inext=eval(-1 + next); inext>=2; inext--) { < if (inext == eval(-1 + next)) { < lefttwo-=eval(prevlefttwo / 100.0); < opacity-=eval(0.7 / 100.0); < document.getElementById('i1').style.opacity=opacity; < document.getElementById('i' + inext).style.left=lefttwo + 'px'; < document.getElementById('i' + inext).style.opacity=opacity; < offset+=widths[eval(-1 + inext)]; < } else { < ourlt=(0 - eval(lefts[eval(-1 + inext)] / 100.0)); < //alert(ourlt + ' ... ' + inext + ' ... ' + document.getElementById('i' + inext).style.left.replace('px','')); < document.getElementById('i' + inext).style.left=eval(ourlt + eval(document.getElementById('i' + inext).style.left.replace('px',''))) + 'px'; < document.getElementById('i' + inext).style.opacity=opacity; < } < } --- > lefttwo-=eval(widths[0] / 100.0); > opacity-=eval(0.7 / 100.0); > document.getElementById('i1').style.opacity=opacity; > document.getElementById('i2').style.left=lefttwo + 'px'; > document.getElementById('i2').style.opacity=opacity; 83c49 < --- >