瀏覽代碼

首页软件下载交互优化

Chente 9 年之前
父節點
當前提交
c9bb62dd5b
共有 2 個文件被更改,包括 14 次插入7 次删除
  1. 2 2
      index3.html
  2. 12 5
      js/smartcost_socus.js

File diff suppressed because it is too large
+ 2 - 2
index3.html


+ 12 - 5
js/smartcost_socus.js

@@ -623,12 +623,19 @@ $("body").click(function(event){
 //     if ($(this).hasClass('focus')) $(this).find('b').html('▲').addClass("down")
 // 	else $(this).find('b').html('▼').removeClass("down")
 // }); 
-$('.selectEntry').hover(function(){
-    $(this).children(".selectList").fadeToggle();
-    $(this).children(".selectTitle").toggleClass("focus");
-    if ($(this).children(".selectTitle").hasClass('focus')) $(this).find('b').html('▲').addClass("down")
-	else $(this).find('b').html('▼').removeClass("down")
+/*首页下载软件*/
+$('.selectTitle').hover(function(){
+    $(this).siblings(".selectList").slideDown();
+    $(this).addClass("focus");
+    if ($(this).hasClass('focus')) $(this).siblings('b').html('▲').addClass("down")
+	else $(this).siblings('b').html(' ').removeClass("down")
 }); 
+$('.arrow').click(function(){
+    $(this).siblings(".selectList").slideUp("fast");
+    $(this).siblings(".selectTitle").removeClass("focus");
+	$(this).html(' ').removeClass("down")
+});
+
 /*轮换1*/
 var q=1;
 var show_li = $("#pointer li");