JQuery/JS generated CSS error
-
Hi,
Just installed your plugin but a couple of images are appearing as broken.
The code for the images use JS, JQuery and the CSS is created within the the js code as follows:
if(!has_filmstrip) { //Add navigation buttons $('<img />').addClass('nav-next').attr('src',img_path+opts.nav_theme+'/next.png').appendTo(j_gallery).css({ 'position':'absolute', 'zIndex':'1100', 'cursor':'pointer', 'top':((opts.panel_height-22)/2)+'px', 'right':'10px', 'display':'none' }).click(showNextItem); $('<img />').addClass('nav-prev').attr('src',img_path+opts.nav_theme+'/prev.png').appendTo(j_gallery).css({ 'position':'absolute', 'zIndex':'1100', 'cursor':'pointer', 'top':((opts.panel_height-22)/2)+'px', 'left':'10px', 'display':'none' }).click(showPrevItem); $('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-next.png').appendTo(j_gallery).css({ 'position':'absolute', 'zIndex':'1099', 'top':((opts.panel_height-22)/2)-10+'px', 'right':'0', 'display':'none' }); $('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-prev.png').appendTo(j_gallery).css({ 'position':'absolute', 'zIndex':'1099', 'top':((opts.panel_height-22)/2)-10+'px', 'left':'0', 'display':'none' });
The next.png and prev.png appear as broken images and when you inspect the element:
<img class="nav-next" src="undefinedlight/next.png" style="position: absolute; cursor: pointer; top: 344px; right: 58px;">
and
<img class="nav-prev" src="undefinedlight/prev.png" style="position: absolute; cursor: pointer; top: 344px; left: 58px;">
So the CSS is not being translated correctly by the plugin.
When I de-activate the plugin I get the correct CSS for these images:
<img class="nav-prev" src="https://www.mysite.com/wp-content/themes/hybrid-theme/library/js/themes/light/prev.png" style="position: absolute; cursor: pointer; top: 344px; left: 58px;">
<img class="nav-next" src="https://www.mysite.com/wp-content/themes/hybrid-theme/library/js/themes/light/next.png" style="position: absolute; cursor: pointer; top: 344px; right: 58px;">
Please can you provide a fix for this asap. Otherwise I cannot use your excellent plugin.
Many Thanks
Indy
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘JQuery/JS generated CSS error’ is closed to new replies.