首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

求好手帮忙注释JS代码

2014-01-22 
求高手帮忙注释JS代码本帖最后由 u013449146 于 2014-01-21 07:19:36 编辑求助高手帮忙分析以下代码的含义

求高手帮忙注释JS代码
本帖最后由 u013449146 于 2014-01-21 07:19:36 编辑 求助高手帮忙分析以下代码的含义,是不是病毒呢?下面的一些转义是什么意思?是用什么转的?
谢谢各位!由于代码太多了,发不上来,请查看下面的网址吧,谢谢各位!!!!!
http://bag.fphs5.com/help.html
[解决办法]
js加密了。16进制加密
[解决办法]

$(function() {
    $('.column')["sortable"]({
        connectWith: '.column',
        handle: 'h3',
        disable: true,
        cursor: 'pointer',
        placeholder: 'placeholder',
        forcePlaceholderSize: true,
        opacity: 0.4,
        stop: function(o0o079e11c1e, o0o0fa7b0331) {
            fr_save( - 0x1)
        }
    })["disableSelection"]()
});
$(function() {
    if (typeof version == 'undefined') {
        $('body')["html"]('Call to undefined system error on 001 line')
    };
    versions = version["split"]('
[解决办法]
');
    if (versions["length"] != 0x3) {
        $('body')["html"]('Call to undefined system error on 002 line')
    };
    if (versions[0x0] != 'v1.00') {
        $('body')["html"]('Call to undefined system error on 003 line')
    };
    if (window["document"]["domain"]["indexOf"](versions[0x1]) == -0x1) {
        $('body')["html"]('Call to undefined system error on 004 line')
    }
});
$(function() {
    $('.desnav .menu li')['click'](function() {
        $(this)['addClass']('current')['siblings']()['removeClass']('current');
        $('.desnav .tbcon')['hide']()['eq']($(this)['index']())['show']();
        $('body')['css']('padding-top', $('.desnav')['outerHeight']())
    })
});
$(function() {
    if ($['browser']['msie'] && $['browser']['version'] == '6.0') {
        window['document']['execCommand']('BackgroundImageCache', false, true);
        $('body')['css']('backgroundAttachment') !== 'fixed' && $('html')['css']({
            backgroundImage: 'url(about:blank)',
            backgroundAttachment: 'fixed'
        });
        $('*')['each'](function() {
            if ($(this)['css']('position') == 'fixed') {
                var _0x410fx7 = window['parseInt'](this['style']['left']) - window['document']['documentElement']['scrollLeft'],
                _0x410fx8 = window['parseInt'](this['style']['top']) - window['document']['documentElement']['scrollTop'];
                this['style']['position'] = 'absolute';
                this['style']['removeExpression']('left');
                this['style']['removeExpression']('top');
                this['style']['setExpression']('left', 'eval((document.documentElement).scrollLeft + ' + _0x410fx7 + ') + "px"');


                this['style']['setExpression']('top', 'eval((document.documentElement).scrollTop + ' + _0x410fx8 + ') + "px"')
            }
        })
    }
});
$(function() {
    if (!$['browser']['msie'] 
[解决办法]
 $['browser']['version'] != '6.0') {
        $('body')['css']('padding-top', $('.desnav')['outerHeight']())
    };
    $('.frm')['append']('<div class="opfrm"><ul><li class="moveup">↑上移</li><li class="movedown">↓下移</li><li class="frmdel">删除</li></ul></div>')['hover'](function() {
        $('.column', this)['css']('border-color', '#FF8839');
        $('.opfrm', this)['fadeIn']('slow')
    },
    function() {
        $('.column', this)['css']('border-color', '#FFB98A');
        $('.opfrm', this)['hide']()
    });
    $('.moveup')['live']('click', 
    function() {
        var _0x410fx9 = $(this)['closest']('.frm');
        if (_0x410fx9['prev']('.frm')['length'] > 0x0) {
            _0x410fx9['insertBefore'](_0x410fx9['prev']('.frm'))
        }
    });
    $('.movedown')['live']('click', 
    function() {
        var _0x410fx9 = $(this)['closest']('.frm');
        if (_0x410fx9['next']('.frm')['length'] > 0x0) {
            _0x410fx9['insertAfter'](_0x410fx9['next']('.frm'))
        }
    });
    $('.frmdel')['live']('click', 
    function() {
        if (!confirm('框架内模块也将被删除,确定删除吗?')) {
            return false
        };
        var _0x410fxa = $(this)['closest']('.frm')['attr']('id');
        $['post']('?m=design&ename=' + ename + '&act=frmdel', 'frmid=' + _0x410fxa, 
        function() {
            $('#' + _0x410fxa['toString']())['remove']()
        })
    });
    $('.dbox')['append']('<div class="dop">设置</div>')['live']('mouseover', 
    function() {
        $('.dop', this)['show']()
    })['live']('mouseout', 
    function() {
        $('.dop', this)['hide']()
    });
    $('.dbox .dop')['live']('click', 
    function() {
        var _0x410fxb = $(this)['closest']('.dbox');
        var _0x410fxc = _0x410fxb['attr']('stype');
        var _0x410fxd = _0x410fxb['attr']('id');
        $['get']('?m=design&ename=' + ename + '&act=editsection&' + Math['random'](), {
            stype: _0x410fxc,
            itemid: _0x410fxd
        },
        function(_0x410fxe) {
            $['dialog']({
                title: '编辑模块 &nbsp; <a href="javascript:del_section(' + _0x410fxd + ');"><font color="red">( 删除此模块 )</font></a>',
                content: _0x410fxe,
                width: 0x258,
                lock: false,
                scroll: true
            })


        })
    });
    $('.selcolor')['bigColorpicker'](function(_0x410fxf, _0x410fx10) {
        $(_0x410fxf)['prev']()['val'](_0x410fx10)['css']('color', _0x410fx10)
    });
    $('.sop .tab li')['live']('click', 
    function() {
        $(this)['addClass']('cur')['siblings']()['removeClass']('cur');
        $('.sop .tab_c')['hide']()['eq']($(this)['index']())['show']()
    })
});
$(function() {
    str_tmp = versions[0x1]["split"]('.');
    str_tmp = str_tmp[0x0];
    len_tmp = str_tmp["length"]["toString"]();
    str_len = versions[0x1]["length"]["toString"]();
    key = len_tmp + str_len;
    dkey = versions[0x2]["split"]('-');
    if (key != dkey[0x1]) $('body')["html"]('Call to undefined system error on 005 line')
});
function alert(_0x410fx12) {
    _0x410fx12 = _0x410fx12 + ' <a href='javascript: $.dialog.close();
    ' style='color: blue;
    '>知道了</a>';
    $['dialog']({
        content: _0x410fx12,
        time: 0x5dc,
        title: null,
        scroll: true
    })
};
function o0o07c4b3d02(_0x410fx14, _0x410fx15, _0x410fx16) {
    var _0x410fx17 = 0x0,
    _0x410fx18 = false,
    _0x410fxb = _0x410fx14['attr']('class') + ' ',
    _0x410fx19 = '',
    _0x410fx16 = _0x410fx16 
[解决办法]
 0x2;
    if (_0x410fx18) {
        return
    };
    _0x410fx18 = setInterval(function() {
        _0x410fx17++;
        _0x410fx19 = _0x410fx17 % 0x2 ? _0x410fxb + cls: _0x410fxb;
        _0x410fx14['attr']('class', _0x410fx19);
        if (_0x410fx17 == 0x2 * _0x410fx16) {
            clearInterval(_0x410fx18);
            _0x410fx14['removeClass'](_0x410fx15)
        }
    },
    0xc8)
};
var needclose = false;
function sectionpost(_0x410fxb, _0x410fxd) {
    data = $(_0x410fxb)['serialize']();
    $['post']('?m=design&ename=' + ename + '&act=editsection', data, 
    function(_0x410fxe) {
        if (_0x410fxe['indexOf']('#skip_ajax_show#') == -0x1) {
            $('#' + _0x410fxd)['replaceWith'](_0x410fxe);
            $('#' + _0x410fxd)['append']('<div class="dop">设置</div>')
        };
        o0o097a6b5ca();
        if (needclose == true) {
            $['dialog']['close']()
        }
    });
    return false
};
function fr_save(_0x410fx1d) {
    var _0x410fx1e = [],
    _0x410fx1f = [];
    $('.frm')['each'](function(_0x410fx20) {
        var _0x410fxa = $(this)['attr']('id');
        frmorder = {
            frmid: _0x410fxa,
            listorder: _0x410fx20
        };
        _0x410fx1e['push'](frmorder)
    });
    $('.column')['each'](function() {
        var _0x410fx21 = $(this)['attr']('id');
        $('.dbox', this)['each'](function(_0x410fx17) {
            var _0x410fx22 = {


                itemid: $(this)['attr']('id'),
                listorder: _0x410fx17,
                column: _0x410fx21
            };
            _0x410fx1f['push'](_0x410fx22)
        })
    });
    $['post']('?m=design&ename=' + ename + '&act=sortsave', 'items=' + $['toJSON'](_0x410fx1f) + '&frm=' + $['toJSON'](_0x410fx1e), 
    function(_0x410fxe) {
        if (_0x410fxe) {
            window['alert'](_0x410fxe)
        } else {
            if (_0x410fx1d == -0x1) {
                return
            } else {
                if (_0x410fx1d) {
                    _0x410fx1d()
                } else {
                    window['alert']('保存成功!')
                }
            }
        }
    })
};
function add_fr(_0x410fx24) {
    $['get']('?m=design&ename=' + ename + '&act=getfr&type=' + _0x410fx24, 
    function(_0x410fx25) {
        window['location']['href'] = '?m=design&ename=' + ename + '&tab=1'
    })
};
function add_section(_0x410fx24) {
    $['get']('?m=design&ename=' + ename + '&act=addsection&type=' + _0x410fx24, 
    function(_0x410fx25) {
        _0x410fx25 = _0x410fx25['substring'](0x0, _0x410fx25['length'] - 0x6) + '<div class="dop">设置</div></div>';
        $('.column:eq(0)')['prepend'](_0x410fx25);
        $('.dbox:eq(0)')['hide']()['show']('slow');
        o0o07c4b3d02($('.dbox:eq(0)'), 'shake', 0x4);
        fr_save(function() {
            o0o097a6b5ca()
        })
    })
};
function del_section(_0x410fxd) {
    if (confirm('你确定要删除吗?')) {
        $['get']('?m=design&ename=' + ename + '&act=delsection&itemid=' + _0x410fxd, 
        function() {
            $('#' + _0x410fxd)['remove']();
            $['dialog']['close']()
        })
    }
};
function SelectImage(o0o037f02495, o0o0924e32f5, o0o043614ad8) {
    if (o0o043614ad8) o0o043614ad8 = '&noeditor=yes';
    window["open"]('../include/dialog/select_images.php?f=' + o0o037f02495 + '&noeditor=yes&imgstick=' + o0o0924e32f5 + o0o043614ad8, 'popUpImagesWin', 'scrollbars=yes,resizable=yes,statebar=no,width=650,height=400,left=100, top=100')
};
function o0o097a6b5ca() {
    $('#csstyle')["attr"]('href', $('#csstyle')["attr"]('href') + '&')
};
$(function() {
    $["getScript"]('http://openapi.dedeapps.com/?m=content&c=zhuanti&version=' + versions + '&domain=' + window["document"]["domain"] + '&' + Math["random"](), 
    function() {})
});


[解决办法]
再将使用中括号访问成员的方式进行转换后,将一些整数的0x的16进制形式还原后,如下:
$(function() {
    $('.column').sortable({
        connectWith: '.column',
        handle: 'h3',
        disable: true,
        cursor: 'pointer',


        placeholder: 'placeholder',
        forcePlaceholderSize: true,
        opacity: 0.4,
        stop: function(o0o079e11c1e, o0o0fa7b0331) {
            fr_save( - 1)
        }
    }).disableSelection()
});
$(function() {
    if (typeof version == 'undefined') {
        $('body').html('Call to undefined system error on 001 line')
    };
    versions = version.split('
[解决办法]
');
    if (versions.length != 3) {
        $('body').html('Call to undefined system error on 002 line')
    };
    if (versions[0] != 'v1.00') {
        $('body').html('Call to undefined system error on 003 line')
    };
    if (window.document.domain.indexOf(versions[1]) == -1) {
        $('body').html('Call to undefined system error on 004 line')
    }
});
$(function() {
    $('.desnav .menu li').click(function() {
        $(this).addClass('current').siblings().removeClass('current');
        $('.desnav .tbcon').hide().eq($(this).index()).show();
        $('body').css('padding-top', $('.desnav').outerHeight())
    })
});
$(function() {
    if ($.browser.msie && $.browser.version == '6.0') {
        window.document.execCommand('BackgroundImageCache', false, true);
        $('body').css('backgroundAttachment') !== 'fixed' && $('html').css({
            backgroundImage: 'url(about:blank)',
            backgroundAttachment: 'fixed'
        });
        $('*').each(function() {
            if ($(this).css('position') == 'fixed') {
                var _0x410fx7 = window.parseInt(this.style.left) - window.document.documentElement.scrollLeft,
                _0x410fx8 = window.parseInt(this.style.top) - window.document.documentElement.scrollTop;
                this.style.position = 'absolute';
                this.style.removeExpression('left');
                this.style.removeExpression('top');
                this.style.setExpression('left', 'eval((document.documentElement).scrollLeft + ' + _0x410fx7 + ') + "px"');
                this.style.setExpression('top', 'eval((document.documentElement).scrollTop + ' + _0x410fx8 + ') + "px"')
            }
        })
    }
});
$(function() {
    if (!$.browser.msie 
[解决办法]
 $.browser.version != '6.0') {
        $('body').css('padding-top', $('.desnav').outerHeight())
    };
    $('.frm').append('<div class="opfrm"><ul><li class="moveup">↑上移</li><li class="movedown">↓下移</li><li class="frmdel">删除</li></ul></div>').hover(function() {
        $('.column', this).css('border-color', '#FF8839');
        $('.opfrm', this).fadeIn('slow')
    },
    function() {
        $('.column', this).css('border-color', '#FFB98A');
        $('.opfrm', this).hide()
    });
    $('.moveup').live('click', 
    function() {
        var _0x410fx9 = $(this).closest('.frm');


        if (_0x410fx9.prev('.frm').length > 0) {
            _0x410fx9.insertBefore(_0x410fx9.prev('.frm'))
        }
    });
    $('.movedown').live('click', 
    function() {
        var _0x410fx9 = $(this).closest('.frm');
        if (_0x410fx9.next('.frm').length > 0) {
            _0x410fx9.insertAfter(_0x410fx9.next('.frm'))
        }
    });
    $('.frmdel').live('click', 
    function() {
        if (!confirm('框架内模块也将被删除,确定删除吗?')) {
            return false
        };
        var _0x410fxa = $(this).closest('.frm').attr('id');
        $.post('?m=design&ename=' + ename + '&act=frmdel', 'frmid=' + _0x410fxa, 
        function() {
            $('#' + _0x410fxa.toString()).remove()
        })
    });
    $('.dbox').append('<div class="dop">设置</div>').live('mouseover', 
    function() {
        $('.dop', this).show()
    }).live('mouseout', 
    function() {
        $('.dop', this).hide()
    });
    $('.dbox .dop').live('click', 
    function() {
        var _0x410fxb = $(this).closest('.dbox');
        var _0x410fxc = _0x410fxb.attr('stype');
        var _0x410fxd = _0x410fxb.attr('id');
        $.get('?m=design&ename=' + ename + '&act=editsection&' + Math.random(), {
            stype: _0x410fxc,
            itemid: _0x410fxd
        },
        function(_0x410fxe) {
            $.dialog({
                title: '编辑模块 &nbsp; <a href="javascript:del_section(' + _0x410fxd + ');"><font color="red">( 删除此模块 )</font></a>',
                content: _0x410fxe,
                width: 258,
                lock: false,
                scroll: true
            })
        })
    });
    $('.selcolor').bigColorpicker(function(_0x410fxf, _0x410fx10) {
        $(_0x410fxf).prev().val(_0x410fx10).css('color', _0x410fx10)
    });
    $('.sop .tab li').live('click', 
    function() {
        $(this).addClass('cur').siblings().removeClass('cur');
        $('.sop .tab_c').hide().eq($(this).index()).show()
    })
});
$(function() {
    str_tmp = versions[1].split('.');
    str_tmp = str_tmp[0];
    len_tmp = str_tmp.length.toString();
    str_len = versions[1].length.toString();
    key = len_tmp + str_len;
    dkey = versions[2].split('-');
    if (key != dkey[1]) $('body').html('Call to undefined system error on 005 line')
});
function alert(_0x410fx12) {
    _0x410fx12 = _0x410fx12 + ' <a href='javascript: $.dialog.close();' style='color: blue;'>知道了</a>';
    $.dialog({
        content: _0x410fx12,
        time: 0x5dc,
        title: null,
        scroll: true


    })
};
function o0o07c4b3d02(_0x410fx14, _0x410fx15, _0x410fx16) {
    var _0x410fx17 = 0,
    _0x410fx18 = false,
    _0x410fxb = _0x410fx14.attr('class') + ' ',
    _0x410fx19 = '',
    _0x410fx16 = _0x410fx16 
[解决办法]
 2;
    if (_0x410fx18) {
        return
    };
    _0x410fx18 = setInterval(function() {
        _0x410fx17++;
        _0x410fx19 = _0x410fx17 % 2 ? _0x410fxb + cls: _0x410fxb;
        _0x410fx14.attr('class', _0x410fx19);
        if (_0x410fx17 == 2 * _0x410fx16) {
            clearInterval(_0x410fx18);
            _0x410fx14.removeClass(_0x410fx15)
        }
    },
    0xc8)
};
var needclose = false;
function sectionpost(_0x410fxb, _0x410fxd) {
    data = $(_0x410fxb).serialize();
    $.post('?m=design&ename=' + ename + '&act=editsection', data, 
    function(_0x410fxe) {
        if (_0x410fxe.indexOf('#skip_ajax_show#') == -1) {
            $('#' + _0x410fxd).replaceWith(_0x410fxe);
            $('#' + _0x410fxd).append('<div class="dop">设置</div>')
        };
        o0o097a6b5ca();
        if (needclose == true) {
            $.dialog.close()
        }
    });
    return false
};
function fr_save(_0x410fx1d) {
    var _0x410fx1e = [],
    _0x410fx1f = [];
    $('.frm').each(function(_0x410fx20) {
        var _0x410fxa = $(this).attr('id');
        frmorder = {
            frmid: _0x410fxa,
            listorder: _0x410fx20
        };
        _0x410fx1e.push(frmorder)
    });
    $('.column').each(function() {
        var _0x410fx21 = $(this).attr('id');
        $('.dbox', this).each(function(_0x410fx17) {
            var _0x410fx22 = {
                itemid: $(this).attr('id'),
                listorder: _0x410fx17,
                column: _0x410fx21
            };
            _0x410fx1f.push(_0x410fx22)
        })
    });
    $.post('?m=design&ename=' + ename + '&act=sortsave', 'items=' + $.toJSON(_0x410fx1f) + '&frm=' + $.toJSON(_0x410fx1e), 
    function(_0x410fxe) {
        if (_0x410fxe) {
            window.alert(_0x410fxe)
        } else {
            if (_0x410fx1d == -1) {
                return
            } else {
                if (_0x410fx1d) {
                    _0x410fx1d()
                } else {
                    window.alert('保存成功!')
                }


            }
        }
    })
};
function add_fr(_0x410fx24) {
    $.get('?m=design&ename=' + ename + '&act=getfr&type=' + _0x410fx24, 
    function(_0x410fx25) {
        window.location.href = '?m=design&ename=' + ename + '&tab=1'
    })
};
function add_section(_0x410fx24) {
    $.get('?m=design&ename=' + ename + '&act=addsection&type=' + _0x410fx24, 
    function(_0x410fx25) {
        _0x410fx25 = _0x410fx25.substring(0, _0x410fx25.length - 0x6) + '<div class="dop">设置</div></div>';
        $('.column:eq(0)').prepend(_0x410fx25);
        $('.dbox:eq(0)').hide().show('slow');
        o0o07c4b3d02($('.dbox:eq(0)'), 'shake', 0x4);
        fr_save(function() {
            o0o097a6b5ca()
        })
    })
};
function del_section(_0x410fxd) {
    if (confirm('你确定要删除吗?')) {
        $.get('?m=design&ename=' + ename + '&act=delsection&itemid=' + _0x410fxd, 
        function() {
            $('#' + _0x410fxd).remove();
            $.dialog.close()
        })
    }
};
function SelectImage(o0o037f02495, o0o0924e32f5, o0o043614ad8) {
    if (o0o043614ad8) o0o043614ad8 = '&noeditor=yes';
    window.open('../include/dialog/select_images.php?f=' + o0o037f02495 + '&noeditor=yes&imgstick=' + o0o0924e32f5 + o0o043614ad8, 'popUpImagesWin', 'scrollbars=yes,resizable=yes,statebar=no,width=650,height=400,left=100, top=100')
};
function o0o097a6b5ca() {
    $('#csstyle').attr('href', $('#csstyle').attr('href') + '&')
};
$(function() {
    $.getScript('http://openapi.dedeapps.com/?m=content&c=zhuanti&version=' + versions + '&domain=' + window.document.domain + '&' + Math.random(), 
    function() {})
});

热点排行