<script type="text/javascript" src="uygulamalar/menu.js"></script>
Bu kodu silin.
Hocam o kodu kaldırınca, ilk baştaki açılır menüsü olan,
Ürünlerimiz ve Hizmetleriniz butonu işlev görmüyor.
*
Menu.js Kodları budur;
$(document).ready(function() {
$(".menusiralamasi .menuler ul li").hover(function() {
$(this).find("img").stop().animate({ opacity: 0 }, 400);
},
function() {
$(this).find("img").stop().animate({ opacity: 1 }, 400);
});
$(".faqItem .faqTitle a").live("click",function() {
var _index = $(".faqItem .faqTitle a").index(this);
if ($(".faqItem").eq(_index).hasClass("active")) {
$(".faqItem").eq(_index).removeClass("active")
$(".faqItem .faqContent").eq(_index).slideUp("slow");
return false;
}
$(".faqItem").each(function() {
$(this).removeClass("active");
})
$(".faqContent").each(function() {
$(this).slideUp("slow");
})
$(".faqItem").eq(_index).addClass("active");
$($(".faqItem .faqContent").eq(_index)).slideToggle("slow");
return false;
})
var timeoutSet = {};
function clearMenu(target) {
var that = $('#' + target);
if (that.length <= 0)
return;
timeoutSet[target] = setTimeout(function() {
that.hide();
}, 200);
}
function showMenu(target) {
var that = $('#' + target);
if (that.length <= 0)
return;
clearTimeout(timeoutSet[target]);
that.show();
}
$(".menusiralamasi .menuler ul li").hover(function() {
var menu = $(this).attr('rel');
if (menu == null || menu == undefined)
return;
showMenu(menu);
},
function() {
var menu = $(this).attr('rel');
if (menu == null || menu == undefined)
return;
clearMenu(menu);
});
$(".subMenuItem").hover(function() {
var menu = $(this).attr('id');
if (menu == null || menu == undefined)
return;
$('li[rel=' + menu + '] img').stop().animate({ opacity: 0 }, 0);
showMenu(menu);
}, function() {
var menu = $(this).attr('id');
if (menu == null || menu == undefined)
return;
clearMenu(menu);
$('li[rel=' + menu + '] img').stop().animate({ opacity: 1 }, 400);
})
});