I am creating a Login Page in ExtJS 3.4. It has an image and I would like to create an image map so when the user clicks on piece of an image, it goes to an external site.
Here is the code:
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();
}
}
}]
};
Here is what I ended up using: