ソースを参照

首页软件下载交互优化

Chente 9 年 前
コミット
c9bb62dd5b
2 ファイル変更14 行追加7 行削除
  1. 2 2
      index3.html
  2. 12 5
      js/smartcost_socus.js

ファイルの差分が大きいため隠しています
+ 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");