本文目录一览:
- 1、求解密这段js代码
- 2、求解密本段JS代码
- 3、js代码解密
- 4、求各位大大帮解密段JS代码,在这里先谢谢了!
- 5、求解密一段JS代码
- 6、帮我解密一段js代码:
求解密这段js代码
(function($) {
$.fn.slideBox = function(options) {
var defaults = {
direction: 'left',
duration: 0.6,
easing: 'swing',
delay: 3,
startIndex: 0,
hideClickBar: true,
clickBarRadius: 5,
hideBottomBar: false,
width: null,
height: null
};
var settings = $.extend(defaults, options || {});
var wrapper = $(this),
ul = wrapper.children('ul.items'),
lis = ul.find('li'),
firstPic = lis.first().find('img');
var li_num = lis.size(),
li_height = 0,
li_width = 0;
var order_by = 'ASC';
var init = function() {
if (!wrapper.size()) return false;
li_height = settings.height ? settings.height : lis.first().height();
li_width = settings.width ? settings.width : lis.first().width();
wrapper.css({
width: li_width + 'px',
height: li_height + 'px'
});
lis.css({
width: li_width + 'px',
height: li_height + 'px'
});
if (settings.direction == 'left') {
ul.css('width', li_num * li_width + 'px')
} else {
ul.css('height', li_num * li_height + 'px')
};
ul.find('li:eq(' + settings.startIndex + ')').addClass('active');
if (!settings.hideBottomBar) {
var tips = $('div class="tips"/div').css('opacity', 0.6).appendTo(wrapper);
var title = $('div class="title"/div').html(function() {
var active = ul.find('li.active').find('a'),
text = active.attr('title'),
href = active.attr('href');
return $('a').attr('href', href).text(text)
}).appendTo(tips);
var nums = $('div class="nums"/div').hide().appendTo(tips);
lis.each(function(i, n) {
var a = $(n).find('a'),
text = a.attr('title'),
href = a.attr('href'),
css = '';
i == settings.startIndex (css = 'active');
$('a').attr('href', href).text(text).addClass(css).css('borderRadius', settings.clickBarRadius + 'px').mouseover(function() {
$(this).addClass('active').siblings().removeClass('active');
ul.find('li:eq(' + $(this).index() + ')').addClass('active').siblings().removeClass('active');
start();
stop()
}).appendTo(nums)
});
if (settings.hideClickBar) {
tips.hover(function() {
nums.animate({
top: '0px'
}, 'fast')
}, function() {
nums.animate({
top: tips.height() + 'px'
}, 'fast')
});
nums.show().delay(2000).animate({
top: tips.height() + 'px'
}, 'fast')
} else {
nums.show()
}
};
lis.size() 1 start()
};
var start = function() {
var active = ul.find('li.active'),
active_a = active.find('a');
var index = active.index();
if (settings.direction == 'left') {
offset = index * li_width * -1;
param = {
'left': offset + 'px'
}
} else {
offset = index * li_height * -1;
param = {
'top': offset + 'px'
}
};
wrapper.find('.nums').find('a:eq(' + index + ')').addClass('active').siblings().removeClass('active');
wrapper.find('.title').find('a').attr('href', active_a.attr('href')).text(active_a.attr('title'));
ul.stop().animate(param, settings.duration * 1000, settings.easing, function() {
active.removeClass('active');
if (order_by == 'ASC') {
if (active.next().size()) {
active.next().addClass('active')
} else {
order_by = 'DESC';
active.prev().addClass('active')
}
} else if (order_by == 'DESC') {
if (active.prev().size()) {
active.prev().addClass('active')
} else {
order_by = 'ASC';
active.next().addClass('active')
}
}
});
wrapper.data('timeid', window.setTimeout(start, settings.delay * 1000))
};
var stop = function() {
window.clearTimeout(wrapper.data('timeid'))
};
wrapper.hover(function() {
stop()
}, function() {
window.setTimeout(start, settings.delay * 1000);
});
var imgLoader = new Image();
imgLoader.onload = function() {
imgLoader.onload = null;
init()
};
imgLoader.src = firstPic.attr('src')
}
})(jQuery);
求解密本段JS代码
这应该是那个插件里的吧,人家就叫这个,没有加密。想看懂的话从头到尾的研究吧,只有这一段时看不懂的
js代码解密
解密是很简单的问题,方法:
编写一个a.html,内容如下:
textarea name=id_code style='width:100%;height:500'/textarea
script language=javascript src=mapbarapi.js/script
修改下载到本地的mapbarapi.js文件,把第316个字符开始的return p修改为id_code.value=p即可,现在浏览器打开a.html就可以看见解密后的JS代码。
由于百度的限制,无法粘贴完整的解密后的代码,只粘贴前面部分:
修改后的mapbarapi.js文件前面部分:
eval(function(p,a,c,k,e,r){e=function(c){return(ca?'':e(parseInt(c/a)))+((c=c%a)35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);id_code.value=p}
解密后代码的前面部分:
txurl="";var xiaoqi_auto_zbname=1;var xiaoqi_auto_img=0;var server="";var server="";var qw=new Array();var qw2=new
祝你好运。
求各位大大帮解密段JS代码,在这里先谢谢了!
代码并没有加密,无需解密,只不过是压缩到了一行里,你自己加上一些换行和空格就能看懂了.
求解密一段JS代码
(function(_0x596b5e, _0x370dd3) {
var _0x1a4598 = function(_0x5408d9) {
while (--_0x5408d9) {
_0x596b5e['push'](_0x596b5e['shift']());
}
};
_0x1a4598(++_0x370dd3);
}(_0x57a3, 0x94));
var _0x357a = function(_0x56c4a2, _0x4dda5b) {
_0x56c4a2 = _0x56c4a2 - 0x0;
var _0x4a1221 = _0x57a3[_0x56c4a2];
return _0x4a1221;
};
(function(_0x542683, _0x514636, _0x475849) {
var _0x1b3d42 = function() {
var _0x31b083 = !! [];
return function(_0x28e252, _0x4b5d64) {
var _0x41d6fa = _0x31b083 ?
function() {
if (_0x4b5d64) {
var _0x26db66 = _0x4b5d64[_0x357a('0x0')](_0x28e252, arguments);
_0x4b5d64 = null;
return _0x26db66;
}
} : function() {};
_0x31b083 = ![];
return _0x41d6fa;
};
}
帮我解密一段js代码:
最终应该是这样:
var KD=KISSY.DOM;
try {
KD.append(KD.create('style#hd' + KD.html('#img').match(/[{][^}]*[}]/) + '/style'), 'head')
} catch (e) {};
try {
KD.append(KD.create('stylediv#hd{width:100%;background:' + KD.html('.hdimg') + '}/style'), '#hd')
} catch (e) {};
try {
eval(O(KD.html('.mima')))
} catch (e) {};
function O(o) {
i = '',
o.replace(/[0-9]*/g, function(O) {
if (O){
i = i + String.fromCharCode( O ^ 51);
}
});
return i
}
(以上为人工分析解压,仅供参考)