简体   繁体   中英

Facebox preloader doesn't show properly

I've tried as suggested from http://groups.google.com/group/facebox/browse_thread/thread/7f9a27e078998ddb but it still won't work.

I changed the preloader image to direct path eg http://example.com/css/facebox/ajax-loader.gif

Even if you go to their website http://chriswanstrath.com/facebox/ the preloader image doesn't show.

Hmmm, I don't really use facebox but having a quick look at the source code, it seems that the plugin is in the process of major upgrade and still not stable (maybe the whole 1.3), here are my comments:

  1. It seems that the plugin was using a CSS rounded corners boxes technique and now it's using CSS properties (but the source code still contains code from the old technique).
  2. a quick hack I made was changing line 106 in the facebox.js file from:
    $('#facebox .body').children().hide().end().
    to:
    $('#facebox .content').children().hide().end().

Please try it and give me your feedback, and please keep following the developer for any updates!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM