Closed dimitridarras closed 13 years ago
More an addition than an "issue" but not quite a fork. If you want to add shadowbox.js to the links, this is what worked for me:
this.el.click(function(){ if (obj.activeNode) { obj.activeNode.el.removeClass('active'); } if (typeof(opts.onclick)=='function') { opts.onclick(thisnode); } obj.activeNode = thisnode; obj.activeNode.el.addClass('active'); this.el = $('<a href="'+this.href+'" rel="shadowbox">'+this.name+'</a>'); Shadowbox.open({ player: 'qt', title: 'Welcome', content: this.href, height: 480, width: 720 });
In the HTML, place the JavaScript that calls the shadowbox at the bottom of your document:
<script type="text/javascript"> Shadowbox.init({ // a darker overlay looks better on this particular site overlayOpacity: 0.8 }); </script>
...
More an addition than an "issue" but not quite a fork. If you want to add shadowbox.js to the links, this is what worked for me:
In the HTML, place the JavaScript that calls the shadowbox at the bottom of your document: