dialog.set_back_color("#F9F9F9"); dialog.set_title(editor.GetLangText("INSERTIMAGEMAP")); de.cancel(); instance.resizearea(de,1,1); instance.resizearea(de,1,0); instance.resizearea(de,0,1); //self._estyle.boxShadow="2px 2px 2px #333333"; return self._area; self._area=value; var coords=self._area.GetAttribute("coords")||""; coords=coords.split(','); var x1=parseInt(coords[0])||0; var y1=parseInt(coords[1])||0; var x2=parseInt(coords[2])||0; var y2=parseInt(coords[3])||0; self.set_left(x1); self.set_top(y1); self.set_width( (x2-x1)||32 ); self.set_height( (y2-y1)||32 ); self.set_offset_x(0); self.set_offset_y(0); return self._selected; self._selected=value; var color=value?"red":"blue"; self.set_border_color(color); resizex.set_back_color(color); resizey.set_back_color(color); resizez.set_back_color(color); resizet.set_back_color(color); resizel.set_back_color(color); var x1=self.get_offset_x()+self.get_left(); var y1=self.get_offset_y()+self.get_top(); var x2=x1+self.get_width(); var y2=y1+self.get_height(); var coords=x1+","+y1+","+x2+","+y2; self._area.SetAttribute("coords",coords); var alt=self._area.GetAttribute("alt"); var url=self._area.GetAttribute("href"); var sb=[]; if(alt)sb.push(alt); if(url)sb.push(url); self.set_tooltip(sb.join("\r\n"));