Я пытаюсь внедрить этот (dannyvankooten dot com/jquery-plugins/mapz/) скрипт панорамирования изображения в статью Joomla. Я протестировал его вне Joomla (http://tylypahka.tk/karttatesting/), и он работает отлично. Однако, когда я попробовал это в статье Joomla, панорамирование не работает (http://tylypahka.tk/kartta а>).
Я поместил в голову шаблона Joomla точно такой же код, что и в тестовой версии:
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js" type="text/javascript"></script>
<script src="https://jquery-ui.googlecode.com/svn-history/r2596/branches/dev/spinner/external/mousewheel/jquery.mousewheel.min.js" type="text/javascript" ></script>
<script src="http://tylypahka.tk/js/jquery.mapz.js" type="text/javascript"></script>
<script type="text/javascript" src="http://tylypahka.tk/js/jquery.maphilight.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#map").mapz({
zoom : true,
createmaps : true,
mousewheel : true
});
});
</script>
<script type="text/javascript">$(function() {
$('.map').maphilight();
$('#squidheadlink').mouseover(function(e) {
$('#squidhead').mouseover();
}).mouseout(function(e) {
$('#squidhead').mouseout();
}).click(function(e) { e.preventDefault(); });
});</script>
<style>
.map-viewport{ position:relative; width:860px; height:883px; overflow:hidden; background-color:black;}
.level{ position:absolute; left:0; top:0; z-index:10;}
.current-level{ z-index:20; }
#map{ width:1297px; height:883px; position:absolute; left:0; top:0; cursor:move;}
</style>
И такой же точный код к статье:
<div class="map-viewport">
<div id="map">
<img src="http://img42.imageshack.us/img42/8954/tylypahkanportit.png" width="1297" height="883" usemap="#html-map" class="current-level level map" />
</div>
<map name="html-map">
<area id="squidhead" shape="rect" coords="311,494,434,634" href="http://www.image-maps.com/" alt="" title=""/>
</map>
</div>
jQuery автоматически загружается на сайт Joomla, так что это не должно быть проблемой. Любые идеи, что я делаю неправильно здесь?
Все предложения и помощь будут высоко оценены!
$
. Проверьте консоль ошибок в firebug - person Marko D   schedule 02.03.2013