⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ricoeffects.js

📁 外买系统struts2
💻 JS
字号:
Rico.Effect.SizeAndPosition = Class.create();Rico.Effect.SizeAndPosition.prototype = {   initialize: function(element, x, y, w, h, duration, steps, options) {      this.element = $(element);      this.x = x || this.element.offsetLeft;      this.y = y || this.element.offsetTop;      this.w = w || this.element.offsetWidth;      this.h = h || this.element.offsetHeight;      this.options  = options || {};      this.animation = new Rico.Effect.Animation(duration, steps,									  														{step : this.animateStep.bind(this),																				 				 onFinish : this.options.complete});   },   animateStep: function(stepsToGo) {  			var left = this.element.offsetLeft + ((this.x - this.element.offsetLeft)/stepsToGo) + "px"			var top = this.element.offsetTop + ((this.y - this.element.offsetTop)/stepsToGo) + "px"			var width = this.element.offsetWidth + ((this.w - this.element.offsetWidth)/stepsToGo) + "px"			var height = this.element.offsetHeight + ((this.h - this.element.offsetHeight)/stepsToGo) + "px"      var style = this.element.style;			style.left = left;			style.top = top;			style.width = width;			style.height = height;   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -