ExtJS3.4でログインページを作成しています。画像があり、画像マップを作成したいので、ユーザーが画像をクリックすると外部サイトに移動します。
コードは次のとおりです。
var headerImage = new Ext.BoxComponent(
{ autoEl:
{
tag: 'img',
src: AVRMS.ROOT_CONTEXT + "/ssl/images/LoginHeader.png"
} });
var loginButton = {
xtype: 'compositefield',
id: 'cmpLogin',
combineErrors: false,
height: 50,
items: [
{
xtype: 'displayfield',
value: ''
},
{
xtype: 'button',
text: 'Login',
listeners: {
click: function () {
loginUser();
}
}
}]
};