i'm having a problem with Galleria. the following code:
<script type="text/javascript">
$(document).keypress(function(e)
{
switch(e.keyCode)
{
case 37: //press left arrow
$.galleria.prev();
break;
case 39: //press right arrow
$.galleria.next();
break;
}
});
</script>
won't work, it says:
$.galleria is undefined
if i use instead Galleria.prev()
and Galleria.next()
then it says: Galleria.next is not a function
, and the same fo prev.
i hope somebody with more experience can help me.
Thanks in advance, Adam