diff --git a/www/data/javascript/ms_basic.js b/www/data/javascript/ms_basic.js index ab81e1f..4c81929 100644 --- a/www/data/javascript/ms_basic.js +++ b/www/data/javascript/ms_basic.js @@ -66,11 +66,13 @@ function imgcarousel_move(source, delta) { if (img.toLowerCase().endsWith('.webm')) { content.setAttribute('style', ''); + content.setAttribute('onclick', 'javascript:void()'); content.innerHTML = ''; } else { - content.setAttribute('style', 'background-image: url(' + img + ');'); + content.setAttribute('style', 'background-image: url(' + img + '); cursor: pointer;'); + content.setAttribute('onclick', 'javascript:window.open("' + img + '","_blank");'); content.innerHTML = ''; } }