wp-super-user
Forum Replies Created
Viewing 1 replies (of 1 total)
-
For what it is worth, I have put the following code in the Custom Java Script on the Main page of the Options part of the WP Dashboard, still no luck:
jQuery(document).ready(function doLightBox(){ var haveConf = (typeof JQLBSettings == 'object'); var ss, rs, ms = 0; if(haveConf && JQLBSettings.slideshowSpeed) { ss = parseInt(JQLBSettings.slideshowSpeed); } if(haveConf && JQLBSettings.resizeSpeed) { rs = parseInt(JQLBSettings.resizeSpeed); } if(haveConf && JQLBSettings.marginSize){ ms = parseInt(JQLBSettings.marginSize); } var default_strings = { help: ' Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.', prevLinkTitle: 'previous image', nextLinkTitle: 'next image', closeTitle: 'close image gallery', image: 'Image ', of: ' of ', download: 'Download', pause: '(pause slideshow)', play: '(play slideshow)' }; jQuery('a[rel^="lightbox"]').lightbox({ adminBarHeight: jQuery('#wpadminbar').height() || 0, linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self', showInfo: (haveConf && JQLBSettings.showInfo == '0') ? false : true, displayHelp: (haveConf && JQLBSettings.help.length) ? true : false, marginSize: (haveConf && ms) ? ms : 0, fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false, resizeSpeed: (haveConf && rs >= 0) ? rs : 400, slidehowSpeed: (haveConf && ss >= 0) ? ss : 4000, displayDownloadLink: (haveConf && JQLBSettings.displayDownloadLink == '0') ? false : true, navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true, strings: (haveConf && typeof JQLBSettings.help == 'string') ? JQLBSettings : default_strings }); })
Viewing 1 replies (of 1 total)