Люди, у меня уже едет крыша. Написала плюшку на джейквери, а она не отрабатывает из-за одной строчки, которая подключается на странице. Я трое суток копаю сайт, но не могу понять, где эта с...ь подключается.
Итак, Joomla 1.5.26 и VirtueMart 1.1.9
Я написала код для смены фота товаров при наведении на другое мини-изображение, простое jquery, библиотека к сайту подключена. Использую табы, которые тоже нашла на форуме.
Кто-нибудь, помогите убрать эту часть
Из файла
<div id="vmMainPage">
<script type="text/javascript" src="http://site/plugins/content/jquery/jquery.min.js"></script>
<script type="text/javascript" src="http://site/plugins/content/jquery/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://site/plugins/content/jquery/jquery-ui.css"></script>
<link rel="stylesheet" href="http://site/plugins/content/jquery/jquery-ui.css" type="text/css" />
<script type="text/javascript">
jQuery.noConflict();
jQuery(function() {
jQuery("#tabs").tabs({
fx: {
opacity: 'toggle',
duration: 200
}
});
});
</script>
<script type="text/javascript">
function show_modal(){
document.getElementById('signup').style.display="block";
document.getElementById('lean_overlay').style.display="block";
}
function hide_modal(){
document.getElementById('signup').style.display="none";
document.getElementById('lean_overlay').style.display="none";
}
</script>
<div class='product_table'>
Или помогите найти решение для совместимости. Пыталась по инструкциям из инета настроить совместимость - добилась того, что админка не отображается. Я бы плюнула на скрипт и написала бы все на CSS, да заказчику надо чтоб в одном месте наводить, а в другом менялось и у каждого товара по своему. А на JavaScript из джейквери перевести мне уже мозга не хватает, да и не факт что он отработает. Вот моя плюшка:
$(function() {
var bigphoto = $(".slider_big_photo");
var one_mouse = $("#slider__circle1");
var two_mouse = $("#slider__circle2");
var tree_mouse = $("#slider__circle3");
var four_mouse = $("#slider__circle4");
var five_mouse = $("#slider__circle5");
var six_mouse = $("#slider__circle6");
var seven_mouse = $("#slider__circle7");
var eight_mouse = $("#slider__circle8");
var one = $("#slider_big_photo1");
var two = $("#slider_big_photo2");
var tree = $("#slider_big_photo3");
var four = $("#slider_big_photo4");
var five = $("#slider_big_photo5");
var six = $("#slider_big_photo6");
var seven = $("#slider_big_photo7");
var eight = $("#slider_big_photo8");
function adjustStyle(width) {
width = parseInt(width);
one_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); one.addClass('slider_big_photo_active');});
one_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); one.addClass('slider_big_photo_active');});
two_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); two.addClass('slider_big_photo_active');});
two_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); two.addClass('slider_big_photo_active');});
tree_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); tree.addClass('slider_big_photo_active');});
tree_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); tree.addClass('slider_big_photo_active');});
four_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); four.addClass('slider_big_photo_active');});
four_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); four.addClass('slider_big_photo_active');});
five_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); five.addClass('slider_big_photo_active');});
five_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); five.addClass('slider_big_photo_active');});
six_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); six.addClass('slider_big_photo_active');});
six_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); six.addClass('slider_big_photo_active');});
seven_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); seven.addClass('slider_big_photo_active');});
seven_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); seven.addClass('slider_big_photo_active');});
eight_mouse.mouseover(function() {bigphoto.removeClass('slider_big_photo_active'); eight.addClass('slider_big_photo_active');});
eight_mouse.mouseout(function() {bigphoto.removeClass('slider_big_photo_active'); eight.addClass('slider_big_photo_active');});
}
adjustStyle($("body").width());
$(window).resize(function() {
adjustStyle($("body").width());
});
});