public
Description: Really simple lightbox.
Clone URL: git://github.com/drogus/lightbox-fu.git
Explorer... is real pain
drogus (author)
Tue Jun 24 10:34:11 -0700 2008
commit  766e78cbd892c78adbc3c97ac6bac6f85a174187
tree    31b9840b0acd4ffc517506f72f16233f268e49d7
parent  b7ba7f83bc94ca37fe2a0a87b8be04df79f93a94
...
11
12
13
14
 
15
16
17
...
11
12
13
 
14
15
16
17
0
@@ -11,7 +11,7 @@
0
     <script src="../jquery.lightBoxFu.js"></script>
0
     <script type="text/javascript">
0
       $(function() {
0
- $.lightBoxFu.initialize({imagesPath: 'images/', stylesheetsPath: '../stylesheets/'});
0
+ $.lightBoxFu.initialize({imagesPath: '../images/', stylesheetsPath: '../stylesheets/'});
0
            $('.normal').lightBoxFu({html: "<strong>Some</strong> nasty text!"});
0
            $('.no-close').lightBoxFu({html: "You can't <strong>close</strong> me!", closeOnClick: false});
0
       });
...
15
16
17
18
 
19
20
21
...
24
25
26
27
28
29
30
...
15
16
17
 
18
19
20
21
...
24
25
26
 
27
28
29
0
@@ -15,7 +15,7 @@
0
       if($('#lightboxfu').length == 0) {
0
      options = {stylesheetsPath: '/stylesheets/', imagesPath: '/images/'};
0
      jQuery.extend(options, o);
0
- html = '<div id="lightboxfu"><div id="lOverlay""><div id="lWindow"><div id="lInner"></div></div></div></div>';
0
+ html = '<div id="lightboxfu"><div id="lOverlay" style="background: url('+options.imagesPath+'overlay.png);"><div id="lWindow"><div id="lInner"></div></div></div></div>';
0
     html += '<link href="'+options.stylesheetsPath+'lightbox-fu.css" media="screen" rel="Stylesheet" type="text/css" />';
0
     if ($.browser.msie && $.browser.version == '6.0') {
0
       html += '<link rel="stylesheet" type="text/css" href="'+options.stylesheetsPath+'lightbox-fu-ie6.css" />';
0
@@ -24,7 +24,6 @@
0
       html += '<link rel="stylesheet" type="text/css" href="'+options.stylesheetsPath+'lightbox-fu-ie7.css" />';
0
     }
0
         $('body').append(html);
0
- $('lOverlay').css('background', 'url('+options.imagesPath+'overlay.png)');
0
       }
0
     },
0
     open: function(options) {

Comments

    No one has commented yet.