双截棍之PLC QQ群的烟味弥漫,隔壁群在呐喊, 群里面的管理员睡觉又打鼾 卖西门的代理商,练DCS耍组态王 硬底子功夫最擅长,还会人机以太网 他们客户我习惯进群就耳濡目染 什么数字量模拟量我都耍的有模有样 什么东西最喜欢,PLC,柔中带钢 想要去德国西门学变频跟电机 怎么开怎么开,我怎么都打不开 怎么开怎么开,泪流满面汗下来 日行千里买电缆,马不停蹄买开关 去去就来,一个马步向前, 一按左开关右开关 一不小心碰到电源太危险 一再重演 一把我不用的剥线钳 一放好多年 它一直在身边 怎么开怎么开,一打开总开关 怎么开怎么开,电机轰隆隆在响 怎么开怎么开,它怎么不听使唤 哼,快使用PLC,哼哼哈嘿, 快使用PLC,哼哼哈嘿, 工控学子切记,机壳要接地, 是谁在用传感器,不用PID, 快使用PLC,哼哼哈嘿, 快使用PLC,哼哼哈嘿, 如果我有人机,挂在墙壁 再连上PLC,一按就停机 哼
var FxScroll=new Class({
initialize:function(options){
this.FxContain=options.FxContain;
this.FxItems=options.FxItems;
this.duration=options.duration||6000;
this.showlength=options.showlength||4;
this.step=options.step||1;
if(!this.FxItems.length)return;
this.ItemParent=this.FxItems[0].getParent();
this.control=options.control;
if(!this.control.length)return;
this.init();
},
init:function(){
if(this.FxItems.lengththat.ItemParentW){return;}
that.FxContain.store('dur','left');
that.scroll();
});
}
});
window.addEvent('domready', function(){
var options={FxContain:$('goods-rels'),FxItems:$ES('.items-gallery','goods-rels'),control:$$('div[class^=num_]')};
var vscroll=new FxScroll(options);
});
void function(){
/*橱窗放大镜
author:litie[A]shopex.cn
[c] ShopEx
last update : 2009年9月25日14:51:20
*/
(new Image()).src = 'statics/loading.gif';
var getAmongPos = function(size,to){
var elpSize = $(to).getSize();
return {
'top':Math.abs((elpSize.y/2).toInt()-(size.height/2).toInt()+to.getPosition().y+elpSize.scroll.y),
'left':Math.abs((elpSize.x/2).toInt()-(size.width/2).toInt()+to.getPosition().x+elpSize.scroll.x)
};
};
$$('.grid .zoom a').addEvent('click',function(e){
e.stop();
if(this.retrieve('active'))return;
var _this = this;
_this.store('active',true);
var tpic = this.getParent('.items-gallery').getElement('.goodpic img');
var bpic_src = this.get('pic');
var loading = new Element('div',{
styles:{'background':'#fff url(statics/loading.gif) no-repeat 50% 50%',
'width':40,
'height':40,
'border':'1px #e9e9e9 solid',
'opacity':.5}}).inject(document.body).amongTo(tpic);
new Asset.image(bpic_src,{onload:function(img){
loading.remove();
var winsize = window.getSize();
var imgSize = $(img).zoomImg(winsize.x,winsize.y,1);
var fxv = $extend(getAmongPos(imgSize,window),imgSize);
var imgFx = new Fx.Morph(img,{link:'cancel'});
img.setStyles($extend(tpic.getCis(),{opacity:0.5})).inject(document.body).addClass('img-zoom').addEvent('click',function(){
imgFx.start(tpic.getCis()).chain(function(){this.element.remove();_this.store('active',false);});
});
imgFx.start($extend(fxv,{opacity:1}));
document.addEvent('click',function(){
img.fireEvent('click');
document.removeEvent('click',arguments.callee);
});
},onerror:function(){
_this.store('active',false);
loading.remove();
}});
});
}();
|