Topic: Disable function when clicking on a thumb [SOLVED]
I want to disable the clickability of the thumbnails in screenmode small.
I found a workaround to do this, but no real solution. Maybe you can help me?
My workaround is a CSS property for the div-tag where the thumbnails are in (pointer-events: none).
Code:
<script src="galleries/libellen/jbcore/juicebox.js"></script>
<script type="text/javascript">
new juicebox({
baseUrl: 'galleries/libellen/',
backgroundColor:'222222',
containerid:'homepictures',
galleryHeight:'100px',
galleryWidth:'90%',
screenmode: 'SMALL',
showSplashPage: 'NEVER',
showExpandButton: false,
showOpenButton: false,
useFullscreenExpand: false,
imageClickMode: 'none',
galleryTitle: ''
});
</script>
<div id="homepictures">
</div>
CSS:
div#homepictures{
margin-left: auto;
margin-right: auto;
pointer-events: none;
}
Example:
http://miss-iso.ch
Unfortunately this pointer-events: none is not a official CSS 3 definition. So CSS validator says that this is an error.
I hate errors (neither if they work in all browsers like pointer-events do) and therefore that is no solution for me :)
Can anybody help me to disable the clicks on thumbs with javascript?
Can you please let me know how this links on thumbs works? I doesn't see any hrefs or onclicks on this elements? Can you please let me know for which html element the links are defined for (classname or id?).
I want to do something like that:
<script type="text/javascript">
document.getElementsByClassName('jb-idx-thb-container').onmousedown = new function ("return false");
</script>
...but i don't know on which elements i have to disable the onmousedown. Can you help me please?
Thanks and best regards,
Toni