?? jquery.js
字號:
o.imgLayer.hide();
o.isShow = false;
}, 200);
}
};
this.input.bind('focus', showImg);
this.input.bind('blur', hideImg);
};
JCore.CheckCode.prototype.createHtml = function() {
this.imgLayer = $('<div/>');
this.img = $('<img border="0" alt="驗證碼看不清楚?請點擊刷新驗證碼"/>');
var o = this;
this.img.bind('click', function() {
o.input.focus();
if (o.event) {
clearTimeout(o.event);
}
this.src = o.url + '?d=' + new Date().getTime();
});
this.img.appendTo(this.imgLayer);
this.imgLayer.appendTo(document.body);
this.imgLayer.addClass('j-chkcode');
};
/**
* 向上滾動js類
*/
JCore.UpRoller = function(rid, speed, isSleep, sleepTime, rollCount, rollSpan,
unitHight) {
this.speed = speed;
this.rid = rid;
this.isSleep = isSleep;
this.sleepTime = sleepTime;
this.rollCount = rollCount;
this.rollSpan = rollSpan;
this.unitHight = unitHight;
this.proll = $('#roll-' + rid);
this.prollOrig = $('#roll-orig-' + rid);
this.prollCopy = $('#roll-copy-' + rid);
// this.prollLine = $('#p-roll-line-'+rid);
this.sleepCount = 0;
this.prollCopy[0].innerHTML = this.prollOrig[0].innerHTML;
var o = this;
this.pevent = setInterval(function() {
o.roll.call(o)
}, this.speed);
}
JCore.UpRoller.prototype.roll = function() {
if (this.proll[0].scrollTop > this.prollCopy[0].offsetHeight) {
this.proll[0].scrollTop = this.rollSpan + 1;
} else {
if (this.proll[0].scrollTop % (this.unitHight * this.rollCount) == 0
&& this.sleepCount <= this.sleepTime && this.isSleep) {
this.sleepCount++;
if (this.sleepCount >= this.sleepTime) {
this.sleepCount = 0;
this.proll[0].scrollTop += this.rollSpan;
}
} else {
var modCount = (this.proll[0].scrollTop + this.rollSpan)
% (this.unitHight * this.rollCount);
if (modCount < this.rollSpan) {
this.proll[0].scrollTop += this.rollSpan - modCount;
} else {
this.proll[0].scrollTop += this.rollSpan;
}
}
}
}
JCore.LeftRoller = function(rid, speed, rollSpan) {
this.rid = rid;
this.speed = speed;
this.rollSpan = rollSpan;
this.proll = $('#roll-' + rid);
this.prollOrig = $('#roll-orig-' + rid);
this.prollCopy = $('#roll-copy-' + rid);
this.prollCopy[0].innerHTML = this.prollOrig[0].innerHTML;
var o = this;
this.pevent = setInterval(function() {
o.roll.call(o)
}, this.speed);
}
JCore.LeftRoller.prototy
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -