123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- * Created by lenovo on 2017/4/27.
- */
- function xpT(x){
- var li=$("#txtUl li");
- var xiaoBox=$("#xwBox .xiaoBox");
- for (var j=0; j<xiaoBox.length; j++){
- xiaoBox[j].style.display="none";
- li[j].style.color=" #ffffff";
- }
- xiaoBox[x].style.display="block";
- li[x].style.color="red";
- }
- function fou(f){
- var li=$("#txtUl li");
- for (var j=0; j<li.length; j++){
- li[j].style.color=" #ffffff";
- }
- li[f].style.color="red";
- }
- $(document).ready(function () {
- /* ͼƬ����Ч�� */
- $(".mr_frbox").slide({
- titCell: "",
- mainCell: ".mr_frUl ul",
- autoPage: true,
- effect: "leftLoop",
- autoPlay: true,
- vis: 4
- });
- });
- $(function(){
- var scrtime;
- $("#zhanshi").hover(function(){
- clearInterval(scrtime);
- },function(){
- scrtime = setInterval(function(){
- var $ul = $("#zhanshi .ul1");
- var liHeight = $ul.find("li:last").height();
- $ul.animate({marginTop : liHeight + 35 + "px"},1000,function(){
- $ul.find("li:last").prependTo($ul)
- $ul.find("li:first").hide();
- $ul.css({marginTop:0});
- $ul.find("li:first").fadeIn(1000);
- });
- },3000);
- }).trigger("mouseleave");
- });
|