zoukankan      html  css  js  c++  java
  • 鼠标经过放大二维码

    <style>
    .nodeSmall {
    50px;
    height: 50px;
    background: url(../img/bgs.png) no-repeat -159px -51px;
    position: fixed;
    right: 10px;
    top: 40%;
    }
    .erweima {
    position: absolute;
    top: 0;
    left: -150px;
    }
    .nodeSmall a {
    display: block;
    50px;
    height: 50px;
    }
    .hide {
    display: none;
    }

    .show {
    display: block;
    }
    </style>

    </head>
    <body>
    <div class="nodeSmall" id="node_small">
    <a href="#"></a><!--锚定-->
    <div class="erweima hide" id="er">
    <img src="../img/456.png" alt=""/>
    </div>
    </div>
    <script>
    function lss(id) {
    return document.getElementById(id);
    }
    var aObj=lss("node_small").getElementsByTagName("a")[0];
    //为a注册鼠标进入
    aObj.onmouseenter=function () {
    lss("er").className="erweima show";
    };
    //为a注册鼠标离开
    aObj.onmouseout=function () {
    lss("er").className="erweima hide";
    };
    </script>
  • 相关阅读:
    关于虚拟机链接本地磁盘文件的问题
    javaScript学习笔记
    html学习笔记
    eclipse svn插件安装
    python学习笔记一

    hive数据处理
    WordCount实验
    暑假第六周总结
    暑假第五周总结
  • 原文地址:https://www.cnblogs.com/lujieting/p/10046467.html
Copyright © 2011-2022 走看看