呵呵 本页帮助
function pageHelpImg(panel, path, top, right) {
if (typeof(panel) == 'string') {// 传入的为id
panel = Ext.getCmp(panel);
}
// 设置默认值
top = top == null ? 3 : top;
top = right == null ? 30 : right;
if (panel) {
if (panel.rendered) {
var node = Ext.DomQuery
.selectNode('div.x-panel-body', panel.el.dom);
if (node) {
Ext.get(node)
.createChild('<div style="margin:0px; position:absolute;top:' + top + 'px;right:' + right + 'px;width:17px;height:15px;color:#f3f6fb;z-index:1;background-attachment:scroll;">' +
'<a onclick="this.blur && this.blur()" href="'
+ path
+ '" target="_blank">' +
'<img src="/images/frameImg/help.png" title="本页帮助"/>' +
'</a>' +
'</div>');
}
} else {
panel.pageHelpConfig = {path : path, top : top, right : right};
panel.on('render', function() {
var node = Ext.DomQuery.selectNode('div.x-panel-body',
this.el.dom);
if (node) {
Ext.get(node)
.createChild('<div style="margin:0px; position:absolute;top:' + this.pageHelpConfig.top + 'px;right:' + this.pageHelpConfig.right + 'px;width:17px;height:15px;color:#f3f6fb;z-index:1;background-attachment:scroll;">' +
'<a onclick="this.blur && this.blur()" href="'
+ this.pageHelpConfig.path
+ '" target="_blank">' +
'<img src="/images/frameImg/help.png" title="本页帮助"/>' +
'</a>' +
'</div>');
}
});
}
}
}
------解决方案--------------------
不错。全球
------解决方案--------------------什么意思
------解决方案--------------------我完全不懂!!!!!!!!!!!!!!!!!!