rem: } else if (drag_y + img.offsetTop > 762) { 
add: horizontal++; } if (drag_y + img.offsetTop > 762) { img.src = '/i/grey.gif'; 
context: function update_tiles(dx, dy) {    // XXX Ugh, so that the server gets sent the right map co-ords. Needs more thinking about!/*    var form = document.getElementById('mapForm');    form.x.value += floor(x/tilewidth);    form.y.value += floor(y/tileheight);*/    drag_x += dx;    drag_y += dy;    var newcols = {};    for (var i=0; i<6; i++) {        for (var j=0; j<6; j++) {	    var id = i+'.'+j;	    var xx = x+j;	    var yy = y+5-i;	    var img = document.getElementById(id);            if (drag_x + img.offsetLeft > 762) {	        image_rotate(img, -6, 0);	    } else if (drag_x + img.offsetLeft < -508) {	        image_rotate(img, 6, 0);	    } else if (drag_y + img.offsetTop > 762) {	        image_rotate(img, 0, -6);	    } else if (drag_y + img.offsetTop < -508) {	        image_rotate(img, 0, 6);	    }	}    }// XXX: Now has to fetch correct tiles from tileserver and overwrite// correct images... Perhaps this is not right way to do it?/*    for (j in newcols) {	var new_column = {	    success: function(o) {	        var tiles = eval(o.responseText);		for (var i=0; i<6; i++) {		    var tile = tiles[i][0];		    alert(tile);		}	    }	};        var url = '/proxy.cgi?x=' + xx + ';xm=' + xx + ';y=' + y + ';ym=' + (y+5);        var req = YAHOO.util.Connect.asyncRequest('GET', url, new_column, null);    }*/}
meta: 9585	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9585/9475220c2f73e604e77e18c9e5f268ed78560a35/js2.js/buggy/web/js2.js