|
@@ -25,6 +25,20 @@ function getPermission() {
|
|
|
var obj1 = event.data.top;
|
|
|
window.open(basePath+obj1.attributes.url);
|
|
|
});
|
|
|
+ $(img).mouseover({top: obj},function(event){
|
|
|
+ var obj1 = event.data.top;
|
|
|
+ var sIndex = obj1.attributes.icon2.lastIndexOf("/");
|
|
|
+ var pIndex = obj1.attributes.icon2.lastIndexOf(".");
|
|
|
+ var filename = obj1.attributes.icon2.substr(sIndex+1, pIndex - sIndex - 1);
|
|
|
+ var path = obj1.attributes.icon2.substr(0, sIndex+1);
|
|
|
+ console.info(filename);
|
|
|
+ console.info(path);
|
|
|
+ this.src = basePath + "/" + path + filename + "_over.png";
|
|
|
+ });
|
|
|
+ $(img).mouseout({top: obj},function(event){
|
|
|
+ var obj1 = event.data.top;
|
|
|
+ this.src = basePath + "/" +obj1.attributes.icon2;
|
|
|
+ });
|
|
|
// 获取二级菜单
|
|
|
getMenus(obj.id, obj.attributes.code);
|
|
|
}
|