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中===什么意思?解决方法
- 请教这里的@Override 什么意思 @符号有什么意思
- 请教,java源代码中 @Override、@Nullable 什么意思,小弟我从网下没搜到
- GetCurFocus()什么意思?该怎么解决
- throw new Exception("Message.")什么意思?该如何处理
- 请教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;什么意思
- vlan 配备中有一行 standby 101 ip 10.23.101.1 ,什么意思
- "Highest college grade completed"什么意思?解决办法
- "Highest college grade completed"什么意思?解决方案
- 请教这代码里file:///D|/work/vod/Mbar.avi 什么意思
- CSS中的.跟#什么意思
- <div id="container">[color=#aaaaaa]<页面层容器->[/color]什么意思?该如何处理
- if(-f aa.txt) then 什么意思,该怎么解决
- 登陆论坛时的 "浏览器历程" 什么意思
- $(target)什么意思,该怎么解决
- return s && s.getPropertyValue(name) 什么意思?解决方案
- 急求return a.toString().replace(/^(\d)$/, "零$1")什么意思
- <base target="self">什么意思,该如何解决
- $(document).ready(function(){ Alert('" + 什么意思 + "','提醒');})
- jquery 里边end(0) 什么意思
- <A href="javascript:void(0)">什么意思?该怎么解决
- var a=document.getElementsByTagName("input");什么意思?解决方法
- 帮忙解释下 什么意思,该如何解决
- new Integer(1)什么意思?该怎么处理
- js 有关问题,KE.$$ 后面的$$什么意思? 附有完整代码. 求解,
- pagecontext.getRequest()什么意思?该怎么解决
- Bean的存活时间为请求阶最?什么意思,该怎么解决