日期:2014-05-16 浏览次数:20442 次
$(".dropdown > li").hover(function () {
var $container = $(this),
$list = $container.find("ul"),
$anchor = $container.find("a"),
height = $list.height() * 1.1,
multiplier = height / maxHeight;
$container.data("origHeight", $container.height());
$container.find("a:first").text(topText);
$("#navigationProcess").empty();
$anchor.addClass("hover");
$list
.show()
.css({
paddingTop: $container.data("origHeight")
});
if (multiplier > 1) {
$container
.css({
width: 153,
height: maxHeight,
overflow: "hidden"
})
.mousemove(function(e) {
var offset = $container.offset();
var relativeY = ((e.pageY - offset.top) * multiplier) - ($container.data("origHeight") * multiplier);
if (relativeY > $container.data("origHeight")) {