MaxiGallery-slidebox en-us

From MODx Wiki

Jump to: navigation, search
  1. //message to the top left corner of the lightbox
  2. var objuserMessage = '© '+getYear();
  3. //loading image, loading.gif and loading2.gif bundled in this gallery, you can have your own too
  4. var loadingImage = 'assets/snippets/maxigallery/slidebox/loading2.gif';
  5. //close image
  6. var closeButton = 'assets/snippets/maxigallery/slidebox/close.gif';
  7. //next image
  8. var next_link_image = '';
  9. //previous image
  10. var previous_link_image = '';
  11. //text: Back, you can bold the accelerator key
  12. var backText = '<u>B</u>ack';
  13. //text: Next, you can bold the accelerator key
  14. var nextText = '<u>N</u>ext';
  15. //slidebox link title
  16. var imageTitle = 'Next image';
  17. //accelerator keys that goes to next picture, separate by commas
  18. var nextKeys = new Array("n"," ");
  19. //accelerator keys that goes to previous picture, separate by commas
  20. var prevKeys = new Array("b");
  21. //accelerator keys that close the lightbox, separate by commas
  22. var closeKeys = new Array("c","x","q");
  23.  
  24. //you can remove this if you don't use it in objuserMessage
  25. function getYear(){
  26. Stamp = new Date();
  27. year = Stamp.getYear();
  28. if (year < 2000) year = 1900 + year;
  29. return year;
  30. }
Personal tools