WebRoot/js/front.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
Pn.ns('JCore','JCore.CheckCode');
JCore.showFlash = function(str, wid, hei) {
var fs = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"
+ wid + "' height='" + hei + "'>";
fs += "<param name='movie' value='" + str + "'>";
fs += "<param name='wmode' value='transparent'>";
fs += "<embed src='" + str;
fs += "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"
+ wid + "' height='" + hei + "'></embed></object>";
document.write(fs);
}
/**
* @param input
* 验证码输入框jquery对象。
* @param url
* 验证码的url地址。
* @param top
* 上下偏移量。
*/
JCore.CheckCode.cssClass = 'j-chkcode';
JCore.CheckCode.url = '/CheckCode.svl';
JCore.CheckCode = function(input, url, top) {
this.input = input;
this.url = url || JCore.CheckCode.url;
this.top = top || 45;
this.imgLayer = null;
this.img = null;
this.event = null;
this.isShow = false;
var o = this;
var showImg = function() {
if (o.imgLayer == null) {
o.createHtml();
}
if (!o.isShow) {
var d = new Date().getTime();
o.img.attr('src', o.url + '?d=' + d);
var offset = o.input.offset();
o.imgLayer.show();
o.imgLayer.css('top', offset.top - o.top + 'px');
o.imgLayer.css('left', offset.left + 'px');
o.isShow = true;
}
};
var hideImg = function() {
if (o.isShow) {
o.event = setTimeout(function() {
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() {
后面还有 87 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。