Difference between revisions of "Team:UESTC-software/Proof"

Line 91: Line 91:
 
</div>
 
</div>
 
<script type="text/javascript" src="https://2016.igem.org/Team:UESTC-software/js/basic/jquery?action=raw&ctype=text/javascript"></script>
 
<script type="text/javascript" src="https://2016.igem.org/Team:UESTC-software/js/basic/jquery?action=raw&ctype=text/javascript"></script>
</script>
 
<script>
 
    $(".catalog-area ul").html(htmlStr);
 
    $(".content-top").html(str);
 
  
    $(".img-head-p > img").mouseenter(function(){
+
<script type="text/javascript">
        var subArr = [0,4,7,12,14];
+
 
        var parentIndex = $(".img-head-p").index($(this).parent());
+
        var index = parseInt($(".img-head-p > img").index(this)) + 1 - subArr[parentIndex];
+
        $(".text-div").eq(parentIndex).find(".text-p").eq(index).css("display","block").siblings().css("display","none");
+
    });
+
    $(".img-head-p").mouseleave(function(){
+
        var parentIndex = $(".img-head-p").index(this);
+
        $(".text-div").eq(parentIndex).find(".text-p").eq(0).css("display","block").siblings().css("display","none");
+
    });
+
}
+
  
 
$(".scroll-top img").addClass("active");
 
$(".scroll-top img").addClass("active");

Revision as of 18:42, 11 October 2016

三级页面

Proof

CATALOGUE
CATALOGUE