我正在遇到一个问题,那就是,在IE,但不是E,一个网页上工作。 “德布格尔”在以下线上停下来:
btnhelp = new button("btnhelp", framemenu.document.imghelp, "../images/gui/help_o.jpg", "../images/gui/help.jpg", "", "hand", true);
我认为,对纽顿的定义是另一个具有某些原型功能的类别:
function button(jscriptname, htmlobj, dnimg, dimimg, action, cursor, enabled, hlimg)
{
//object for managing buttons easily
this.img = htmlobj;
if(htmlobj.name)
this.name = htmlobj.name
else if(htmlobj.id)
this.name = htmlobj.id
else
this.name = "error";
this.upimg = new Image();
this.dnimg = new Image();
this.dimimg = new Image();
this.hlimg = new Image();
this.upimg.src = this.img.src;
this.dnimg.src = dnimg;
this.dimimg.src = dimimg;
if(hlimg)
this.hlimg.src = hlimg;
this.action = action;
this.jscriptname = jscriptname;
if(cursor)
this.cursor = cursor;
else
this.cursor = "hand";
if(enabled)
this.enable();
else
this.disable();
this.img.onclick= new Function(this.jscriptname + ".click();");
this.img.onmouseover= new Function(this.jscriptname + ".mouseover();");
this.img.onmouseout= new Function(this.jscriptname + ".mouseout();");
}
button.prototype.enable = _enable;
button.prototype.disable = _disable;
button.prototype.mouseover = _mouseover;
button.prototype.mouseout = _mouseout;
button.prototype.click = _click;
button.prototype.hilight = _hilight;
function _enable()
{
this.img.src = this.upimg.src;
this.img.style.cursor = this.cursor;
this.enabled = true;
}
function _disable()
{
this.img.src = this.dimimg.src;
this.img.style.cursor = "default";
this.enabled = false;
}
function _hilight(bool)
{
this.img.src = this.hlimg.src;
this.enabled = bool;
}
function _mouseover()
{
if(this.enabled)
this.img.src = this.dnimg.src;
}
function _mouseout()
{
if(this.enabled)
{
this.img.src = this.upimg.src;
}
}
function _click()
{
if(this.enabled)
eval(this.action);
}
当浮标击中了Bthhelp = 新的纽顿线时,它接着是nsStore.js:
handleEvent: function sss_handleEvent(aEvent) {
一旦它退出了这一职能,它就不再回到 Java文中,下行永远不会被叫去,因此,我认为,在呼吁建立一个新的 but子方面存在着问题。 是否有任何人知道我需要做些什么来解决这个问题?