• 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

  • 相关阅读:
    django序列化器Serializers
    django中模型类变更问题
    django图书管理系统-外键字段的增删改查
    django图书管理系统模型创建
    django中使用KindEditor上传图片
    成长
    git提交代码的经验
    react项目打包
    node——moudle
    git
  • 原文地址:https://www.cnblogs.com/Fooo/p/645401.html
Copyright © 2020-2023  润新知