rem: IE_offset = MODE == 'IE6' ? 2 : 0; drag_offset_x  = egX( SELECTION_DIV ) + IE_offset; drag_offset_y  = egY( SELECTION_DIV ) + IE_offset; SELECTION_X = egeX(evt) - drag_offset_x SELECTION_Y = egeY(evt) - drag_offset_y 
add: IE_offset       = 0; drag_offset_x   = egX( SELECTION_DIV ) + IE_offset; drag_offset_y   = egY( SELECTION_DIV ) + IE_offset; SELECTION_X     = egeX(evt) - drag_offset_x SELECTION_Y     = egeY(evt) - drag_offset_y for(i=4;i<8;i++) { T = ego(red_box_divs[i]); if(T) { T.parentNode.removeChild(T); } var D = dce('div'); var I = dce('img'); sa(D,'id',red_box_divs[i]); D.className = 'redbox'; D.style.backgroundColor = 'red'; sa(I,'src', '/img/blank.gif'); ac(D,I); ac(dragging_object,D); rs(D,1,1); rs(I,1,1); }  
context: function select_start( evt ) {  evt = (evt) ? evt : ((event)?event:null)  SELECTION_DIV   = gp(gee(evt),'DIV');  dragging_object = gp( gee(evt), 'DIV' );  dragging_id     = dragging_object.getAttribute('id')  IE_offset = MODE == 'IE6' ? 2 : 0;  drag_offset_x  = egX( SELECTION_DIV ) + IE_offset;   drag_offset_y  = egY( SELECTION_DIV ) + IE_offset;   SELECTION_X = egeX(evt) - drag_offset_x  SELECTION_Y = egeY(evt) - drag_offset_y  show(ego('other_l'));  m2(ego('other_l'), SELECTION_X, SELECTION_Y, 1, 1 );  m2(ego('other_t'), SELECTION_X, SELECTION_Y, 1, 1 );  m2(ego('other_r'), SELECTION_X, SELECTION_Y, 1, 1 );  m2(ego('other_b'), SELECTION_X, SELECTION_Y, 1, 1 );  ac(dragging_object,ego('other_l'));  ac(dragging_object,ego('other_r'));  ac(dragging_object,ego('other_b'));  ac(dragging_object,ego('other_t'));//  document.getElementsByTagName('body')[0].onmousemove = select_move;  document.getElementsByTagName('body')[0].onmousemove = select_move;  document.getElementsByTagName('body')[0].onmouseup   = select_stop;  return false;}
meta: 9201	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9201/7822fa57d302395277293f593d07ac92e4168a0b/new_drag_imagemap.js/clean/htdocs/js/new_drag_imagemap.js