Создаю кнопку:
Код: Выделить всё
aBtn1 = new OpenLayers.Control.Button({displayClass: 'first',
title: 'test',
trigger: function() {alert ('Button of TYPE_BUTTON type is pressed')}
});
А как на кнопке вывести текст (caption)?
Код: Выделить всё
aBtn1 = new OpenLayers.Control.Button({displayClass: 'first',
title: 'test',
trigger: function() {alert ('Button of TYPE_BUTTON type is pressed')}
});
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 2 гостя