ks_inc/photo.js
找到
var pgg_s = function(settings) {
var defaults = {
ggtype:"top",
pic_s:"0px",
picgl:"300px",
s_opacity: "0",//透明度
e_opacity: "10",//透明度
timing: "500"//动画时间
};
var settings = $.extend(defaults, settings);
picgg_box=$.dialog({
id: 'Tips',
title: false,
content: $("#picend_showgg").html(),
fixed: true,
top:pic_top,
min:false,
max:false,
padding: '0px',
cancel: false,
resize: false,
init: function(){
var duration = 300, /*动画时长*/
api = this,
opt = api.config,
wrap = api.DOM.wrap;
wrap.css(settings.ggtype, settings.pic_s);
wrap.css('opacity', settings.s_opacity);
switch (settings.ggtype)
{
case "top":
wrap.animate({top:settings.picgl, opacity:settings.e_opacity}, settings.timing, function(){});
break;
case "left":
wrap.animate({left:settings.picgl, opacity:settings.e_opacity}, settings.timing, function(){});
break;
case "right":
wrap.animate({right:settings.picgl, opacity:settings.e_opacity}, settings.timing, function(){});
break;
case "bottom":
wrap.animate({bottom:settings.picgl, opacity:settings.e_opacity}, settings.timing, function(){});
break;
default:
wrap.animate({top:settings.picgl, opacity:settings.e_opacity}, settings.timing, function(){});
}
//if (settings.ggtype=="top") ;
//wrap.animate({top:settings.picgl, opacity:settings.e_opacity}, settings.timing, function(){
//});
},
close:function(){
var duration = 300, /*动画时长*/
api = this,
opt = api.config,
wrap = api.DOM.wrap;
wrap.animate({top:'-'+settings.picgl,opacity:0}, settings.timing, function(){
opt.close = function(){};
api.close();
});
return false;
}
});
}
红色的删除