I found out the problem, but it is still strange. The engine.js is loaded before the Mootools library at any K2 article page:
- Code: Select all
<script src="http://localhost/devus/modules/mod_image_show_gk4/styles/gk_game/engine.js" type="text/javascript"></script>
<script src="/devus/media/jui/js/bootstrap.min.js" type="text/javascript"></script>
<script src="/devus/media/system/js/mootools-core.js" type="text/javascript"></script>
I have added the line with "engine.js" manually over </head> and like expected the slider works.
At the home page of this template the code looks like this:
- Code: Select all
<script src="/devus/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/devus/media/system/js/core.js" type="text/javascript"></script>
<script src="/devus/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="http://localhost/devus/modules/mod_image_show_gk4/styles/gk_game/engine.js" type="text/javascript"></script>
The engine.js is loaded after the Mootools library!
In this case the slider works without any problems.
So how can I change the order for the script loading in the K2 article area?