var Videobox = {
init: function (options) {
// init default options
this.options = Object.extend({
resizeDuration: 400, // Duration of height and width resizing (ms)
initialWidth: 250, // Initial width of the box (px)
initialHeight: 250, // Initial height of the box (px)
defaultWidth: 425, // Default width of the box (px)
defaultHeight: 350, // Default height of the box (px)
animateCaption: true, // Enable/Disable caption animation
flvplayer: 'swf/flvplayer.swf'
}, options || {});
this.anchors = [];
$A($$('a')).each(function(el){
if(el.rel && el.href && el.rel.test('^vidbox', 'i')) {
el.addEvent('click', function (e) {
e = new Event(e);
e.stop();
this.click(el);
}.bind(this));
this.anchors.push(el);
}
}, this);
this.overlay = new Element('div').setProperty('id', 'lbOverlay').injectInside(document.body);
this.center = new Element('div').setProperty('id', 'lbCenter').setStyles({width: this.options.initialWidth+'px', height: this.options.initialHeight+'px', marginLeft: '-'+(this.options.initialWidth/2)+'px', display: 'none'}).injectInside(document.body);
this.bottomContainer = new Element('div').setProperty('id', 'lbBottomContainer').setStyle('display', 'none').injectInside(document.body);
this.bottom = new Element('div').setProperty('id', 'lbBottom').injectInside(this.bottomContainer);
new Element('a').setProperties({id: 'lbCloseLink', href: '#'}).injectInside(this.bottom).onclick = this.overlay.onclick = this.close.bind(this);
this.caption = new Element('div').setProperty('id', 'lbCaption').injectInside(this.bottom);
this.number = new Element('div').setProperty('id', 'lbNumber').injectInside(this.bottom);
new Element('div').setStyle('clear', 'both').injectInside(this.bottom);
var nextEffect = this.nextEffect.bind(this);
this.fx = {
overlay: this.overlay.effect('opacity', {duration: 500}).hide(),
center: this.center.effects({duration: 500, transition: Fx.Transitions.sineInOut, onComplete: nextEffect}),
详细解决方案
求教这个js这段示意什么意思
热度:78 发布时间:2013-07-21 21:55:43.0
相关解决方案
- 在SQL话语里 这个符号“:”什么意思
- javascript中===什么意思?解决方法
- 麻烦帮小弟我看上这段SQL语句 什么意思
- 请教这里的@Override 什么意思 @符号有什么意思
- 请教,java源代码中 @Override、@Nullable 什么意思,小弟我从网下没搜到
- GetCurFocus()什么意思?该怎么解决
- .NET 4.0中总是看到 => 操作符,什么意思
- throw new Exception("Message.")什么意思?该如何处理
- 应用程序脱机~什么意思?不知道的帮顶~解决办法
- 未将对象引用设置到对象的实例 什么意思,该如何解决
- Context.Request.ApplicationPath 什么意思?马上结分解决方法
- 请教if (window.ActiveXObject) 什么意思
- Specified file '\Symbian\9.1\S60_3rd_MR\EPOC32\RELEASE\WINSCW\UDEB\.lib' not found 什么意思?解决方案
- matlab 中 ym1(ym1<一) = 1; xm1(xm1<1) = 1;什么意思
- VF中那个“类”什么意思,该如何解决
- vlan 配备中有一行 standby 101 ip 10.23.101.1 ,什么意思
- "Highest college grade completed"什么意思?解决办法
- "Highest college grade completed"什么意思?解决方案
- CheckBoxListener is not abstract......什么意思
- Collection<? extends E> c 什么意思?
- 新手求解 22行 this 什么意思
- [求助]请问这个(...)什么意思?
- 海明校验里 一个圆圈加个+ 什么意思
- int *p;printf("%p",p);什么意思,输出什么格式?
- 我在vc调试 c语言的广度优先遍历 出了一下这个警告 什么意思?
- scanf : floating point formats not linked,什么意思?
- [求助]exit(0)什么意思?
- 请大家看看最后那个printf("\'%c\'=%d ",i,c[i]);什么意思?谢谢
- 编译时,出的错误――问,什么意思?
- xmlhttp.onreadystatechange 什么意思?解决办法