Expand|Select|Wrap|Line Numbers
- initialize: function(ctrl) {
- if(ctrl) {
- this.content = ctrl.rel;
- Event.observe(ctrl, 'click', this.activate.bindAsEventListener(this), false);
- ctrl.onclick = function(){return false;};
- }
- },
- initCallable: function(rel) {
- this.content = rel;
- },
- displayLightbox: function(display){
- $('overlay').style.display = display;
- $(this.content).style.display = display;
- if(display != 'none') this.actions();
- },
Expand|Select|Wrap|Line Numbers
- $(this.content).style.display = display;
I am calling the the following function to pull up the lightbox onload
Expand|Select|Wrap|Line Numbers
- lb = new lightbox();
- lb.initCallable('lightbox4');
- lb.activate();
Dan