I actually fixed this on my own
My solution:
Code:
$(function(){
menuSlider({
id: '#nav',
slideLocation: '#mainBody',
sliderId: 'bce_slider'
})
})
var h
function menuSlider(a){
var ihtml = $(a.slideLocation).html()
$(a.slideLocation).html('<div id="'+a.sliderId+'"></div><div class="newBody">'+ihtml+'</div>')
var loc = -1
var i = -1;
$('#nav *, #bce_slider, #bce_slider *').mouseenter(function(){
if($(this).parent().attr('id')=='nav'){
i = $(this).index()
}
var h = $(a.id+'Zone>li').eq(i).html()
var hh = getHeight(h)
var hhh = $('#'+a.sliderId).height()
$('#'+a.sliderId).html(h)
$('#'+a.sliderId).stop().animate({
height:hh+'px'
},300)
dev(h)
}).mouseleave(function() {
$('#'+a.sliderId).html('')
$('#'+a.sliderId).stop().animate({
height:'0px'
},300)
})
}
Bookmarks