ArchjsPopup.prototype.hide = function(){
if (this.onunload()) {
var offset = this.height > this.bottom - this.top ? this.height : this.bottom - this.top;
var me = this;
if (this.timer > 0) {
window.clearInterval(me.timer);
}
var fun = function(){
if (me.pause == false || me.close) {
var x = me.left;
var y = 0;
var width = me.width;
var height = 0;
if (me.offset > 0) {
height = me.offset;
}
y = me.bottom - height;
if (y >= me.bottom) {
window.clearInterval(me.timer);
me.Pop.hide();
if (typeof me.setAutoRefreshEventobj !== 'undefined') {
me.setAutoRefreshEventobj();
}
}
else {
me.offset = me.offset - me.step;
}
me.Pop.show(x, y, width, height);
}
}
var btCommand = oPopup.document.getElementById("btCommand");
if (btCommand != null) {
btCommand.onclick = function(){
me.oncommand();
}
}
else {
var i, a;
for (i = 0; (a = oPopup.document.getElementsByTagName("a")[i]); i++) {
a.onclick = function(){
me.onlink(this);
}
}
}
}
/*
** 设置速度方法
* */
ArchjsPopup.prototype.speed = function(s){
var t = 20;
try {
t = praseInt(s);
}
catch (e) {
}
this.speed = t;
}
/*
** 设置步长方法
* */
ArchjsPopup.prototype.step = function(s){
var t = 1;
try {
t = praseInt(s);
}
catch (e) {
}
this.step = t;
}