日期:2014-05-16 浏览次数:20340 次
function stopPropagation(){
var e = arguments.callee.caller.arguments[0] || window.event;
if(e.stopPropagation){
e.stopPropagation();
}else{
e.cancelBubble = true;
}
}
showFavorite.prototype = {
showLevelOne: function(){
stopPropagation();
if($('#menu').css('display') == 'block'){
$('#menu').animate({width: "0", height: this.constractHeight, opacity: '0'}, 300, this.allHide);
}else{
createMask();
$('#menu').show().animate({width: this.menuWidth, height: this.menuHeight, opacity:'1'},300);
menuTop = $("#menu").offset().top;
}
function?stopPropagation(event){
????????//var?e?=?arguments.callee.caller.arguments[0]??
------解决方案--------------------
?window.event;
e = event
------解决方案--------------------
arguments.callee.caller.arguments[0]
------解决方案--------------------
window.event;
????????if(e.stopPropagation){
????????????e.stopPropagation();
????????}else{
????????????e.cancelBubble?=?true;
????????}
????}
showFavorite.prototype = {
showLevelOne: function(e){
stopPropagation(e);
if($('#menu').css('display') == 'block'){
$('#menu').animate({width: "0", height: this.constractHeight, opacity: '0'}, 300, this.allHide);
}else{