$(function() { //我的淘宝 $(".menu").powerFloat({ width: 96, offsets: { x: 0, y: -1 }, targetMode: "list", target: [{ href: "#", text: "已买到的宝贝" },{ href: "#", text: "已卖出的宝贝" }], position: "3-2", showCall: function() { $(this).addClass("hover"); }, hideCall: function() { $(this).removeClass("hover"); } }); //我的账户 $(".mine").powerFloat({ width: 96, offsets: { x: 0, y: -1 }, targetMode: "list", target: [{ href: "#", text: "我的资料" },{ href: "#", text: "退出" }], position: "3-2", showCall: function() { $(this).addClass("hover"); }, hideCall: function() { $(this).removeClass("hover"); } }); });