my $tmp_left = $startx + $arealeft; my $tmp_top = $starty + $areatop; $newdiv= "\n" . div( { -style => "position:absolute;left:${tmp_left}px;top:${tmp_top}px;width:${width}px;height:${height}px;cursor:pointer;", -onclick => "Start('$cgiurl?id=$custid');return true;", ...