Ext.BLANK_IMAGE_URL ='extjs3.3/ext-3.3.1/resources/images/default/s.gif';
Ext.onReady(function(){
var panel = new Ext.Panel({
layout :'table',
header : true,
hideBorders : true,
collapsible : true,
shadow : true,
floating : false,
frame : true,
draggable : true,
layoutConfig :{
columns : 4
},
frame:true,
height : 538,
defaults : {
frame :true,
height : 200,
hideBorders : true,
style : 'margin-right:5px',
// collapsible : true,//允许展开和收缩
shadow : true,
floating : false,
frame : true,
draggable : true
},
items: [
{
title:'子面板一',
colspan : 3, //设置跨列
width : 500,
height : 300
},
{
title:'子面板二',
rowspan :2, //设置跨行
height : 500,
width : 382
},
{title:'子面板三'},
{title:'子面板四'},
{title:'子面板五'}
]
})
var viewport=new Ext.Viewport({
autoHeight: true,
border: true,
margins: '0 0 0 0',
items:[
{
region:'north',
html:'<OBJECT WIDTH="1000" HEIGHT="220"><PARAM NAME=movie VALUE="index1.swf"><EMBED src="index1.swf" WIDTH="1000" HEIGHT="220" NAME="2" ALIGN="center"></EMBED></OBJECT> '
}
,{
region:'center',
xtype : 'panel',
items : [panel]
}
]
});
})