zoukankan      html  css  js  c++  java
  • 移入切换图片路径;移出再切回去

    //服务类型
        $('.z_fw_bg .xz_img').mouseenter(function(){
            $(this).find('img.z_img90').css("display","none");
            $(this).find('img.zx_img90').css("display","block");
        })
        $('.z_fw_bg .xz_img').mouseleave(function(){
            $(this).find('img.z_img90').css("display","block");
            $(this).find('img.zx_img90').css("display","none");
        })
        //鼠标移入 ,图标变色——6大工作模块下,心理健康特色学校项目的实施方案
        $(".x_model .top ul li").mouseenter(function(){
            $(this).find("img.lan").css("display","block");
            $(this).find("img.hui").css("display","none");
        });
        $(".x_model .top ul li").mouseleave(function(){
            $(this).find("img.lan").css("display","none");
            $(this).find("img.hui").css("display","block");
        });
    //
    $('.z_fw_bg .xz_img').click(function(){
            $(this).find('img.z_img90').hide();
            $(this).find('img.zx_img90').show();
        })
     
  • 相关阅读:
    jQuery(2)
    jQuery(1)
    underscore.js
    面向对象复习
    1.14函数复习
    面向对象(3)继承
    10.18
    1017
    js笔记二
    js笔记一
  • 原文地址:https://www.cnblogs.com/wolflower/p/7162300.html
Copyright © 2011-2022 走看看