3

Is it possible to access Facebox settings? For example, I'd like to do set the location of the loading image dynamically (see line 4):

<script type="text/javascript" src="<?php echo base_url(); ?>media/facebox/facebox.js" ></script>
  <script type="text/javascript">
  $(document).ready(function(){
    Facebox.loadingImage = '<?php echo base_url(); ?>media/facebox/loading.gif'; // <-- is this possible?
    $('a[rel*=facebox]').facebox();
  });
</script>

Is this possible? How do I do that?

winsmith
  • 20,791
  • 9
  • 39
  • 49

1 Answers1

3

It's possible:

$('a[rel*=facebox]').facebox({ 
    loading_image : '<?php echo base_url(); ?>media/facebox/loading.gif'
}) 
Tim
  • 9,351
  • 1
  • 32
  • 48
  • see also facebox google group: http://groups.google.com/group/facebox/browse_thread/thread/9f4ce9aa04e300b0 – Tim Feb 10 '10 at 09:07