Эх сурвалжийг харах

git-svn-id: https://192.168.57.71/svn/qt@40 12fe181a-e57f-b044-8676-16dc139aa63e

ld_zhoutl 9 жил өмнө
parent
commit
8ceb5ce5c6

+ 14 - 0
jdc/jdcweb/trunk/src/main/webapp/static/xt/js/sys/home.js

@@ -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);
                 }