/* * @Author: anchen * @Date: 2017-09-22 15:28:27 * @Last Modified by: anchen * @Last Modified time: 2017-11-17 14:11:59 */ $(function () { // CSS动效 // var lastId = 0; //记录每一次加载时的最后一条记录id,跟您的排序方式有关。 // // var isloading = false; // // $(window).bind("scroll", function() { // // if ($(document).scrollTop() + $(window).height() > $(document).height() - 200) { // // isloading = true; // getMore(); // } // }); // // function getMore() { // var $caseBox = $(".none"); // $caseBox.eq(lastId).show(); // // if (lastId < 4) { // // } else { // // $caseBox.eq(lastId).show(); // // } // lastId++; // isloading = false; // } $(".S-BoxHeadBox li").mouseover(function () { console.log(123) $(".S-BoxHeadBoxIcon").hide() $(".S-BoxHeadBoxIcon").css('width', '0%') $(this).find(".S-BoxHeadBoxIcon").show() $(this).find(".S-BoxHeadBoxIcon").css('width', '100%') }) $(".S-BoxHeadBox li").click(function () { var val = $(this).text() $(".S-bannerHeadTextColValue a").html(val) }) $('.S-ContentPVideoR p').each(function (i, obj) { var lineHeight = parseInt($(this).css("line-height")); var height = parseInt($(this).height()); if ((height / lineHeight) > 5) { $(this).addClass("p-after") $(this).css("height", "85px"); } else { $(this).removeClass("p-after"); } }); var classAll = ".nav-menu .yangshi3,.nav-menu .yangshi4,.nav-menu .yangshi5,.nav-menu .yangshi6,.nav-menu .yangshi7,.nav-menu .yangshi9" var classYangshiAll = ".nav-menu .yangshi3,.nav-menu .yangshi4,.nav-menu .yangshi5,.nav-menu .yangshi6,.nav-menu .yangshi7,.nav-menu .yangshi9" $(classAll).mouseover(function () { $(".drop-menuBox").show() }) $(classAll).mouseout(function () { $(".drop-menuBox").hide() }) $(classYangshiAll).mouseover(function () { $(".drop-menuBox").show() }) $(classYangshiAll).mouseout(function () { $(".drop-menuBox").hide() }) $(".drop-menuBox").mouseover(function () { $(".drop-menuBox").show() }) $(".drop-menuBox").mouseout(function () { $(".drop-menuBox").hide() }) var WIdwidth = $(window).width() $(".xsMuenList").css('width', WIdwidth) $(window).resize(function () { WIdwidth = $(window).width() $(".xsMuenList").css('width', WIdwidth) }) $(".nav-menu li").mouseover(function () { $(this).find('ul').show().parents(".nav-menu li").siblings().find("ul").hide() }) });