zoukankan      html  css  js  c++  java
  • JavaScript : Tip提示框。

    // JavaScript Document
    document.write("<div id='tip' style='position:absolute; 300px;  z-index:1;  background-color: #ffffff; border: 1px solid gray; overflow: visible;visibility: hidden;font-size:12px;padding:12px;color:#333333'></div>")

    function showtip(w){
     var x=event.x;
     var y=event.y;
     tip.innerHTML=w;
     tip.style.visibility="visible";
     tip.style.left=x+10;
       tip.style.pixelTop=y+document.body.scrollTop+10;

    }

    function hidetip(){
     tip.style.innerHTML=""
     tip.style.visibility="hidden";
     
    }

    //**********************以上另存为: showtip.js

    <table width="100%" border="0" cellspacing="0" cellpadding="0" background="#F7F7F0">
          <tr height="25">
           <td background="images/line-dot.gif" height="20" align="left"><IMG height="5" src="images/dot2.gif" width="5">
            <a
                      onmousemove="showtip('<b>标题:</b><br>毕业女生 自信更在包装外<br>')"
                      onmouseout=hidetip()
                     href='Common/NewsDetails.aspx?id=1035'
                      target=_blank>
                      毕业女生 自信更在包装外
                      </a>
           </td>
          </tr>
          <tr>
           <td background="images/point_h.gif" height="1"></td>
          </tr>
         </table>




    ---------------------------
    http://www.rczx.com/js/showtip.js

  • 相关阅读:
    JS事件
    BOM
    DOM
    常见的SQL字符串函数
    常用的认证方式
    后台代码扫描规则-sonarQube官方
    spring cloud中feign的使用
    常见基于 REST API 认证方式
    Java中连接池
    这是一张心情贴
  • 原文地址:https://www.cnblogs.com/Fooo/p/645401.html
Copyright © 2011-2022 走看看