这个可以用jquery的一个插件cluetip地址下载是:plugins.learningjquery.com/cluetip/demo/ 下面简单讲解下用法: 1 首先当然要放JQUERY的基本JS,和这个插件的JS了,如: <a class="title" href="#" title="This is the title|The first set of contents comes after the first delimiter..... $('a.title').cluetip({splitTitle: '|'}); 这样就会在该连接被点时,弹出一个框,标题是this is the title,内容是|号后面的内容了 2 也可以弹出的内容是个连接,比如 <a class="basic" href="ajax.htm" rel="ajax.htm"> $('a.basic').cluetip(); 3 定义弹出框的高度大小等: <a class="custom-width" href="ajax3.htm" rel="ajax3.htm"> $('a.custom-width').cluetip({width: '200px', showTitle: false}); 4 当鼠标移动到某连接时弹出: <h4 title="Fancy Title!" id="ajax3.htm">Hover over me</h4> $('h4').cluetip({attribute: 'id', hoverClass: 'highlight'}); 5 当用户主动点这个连接时,才弹出提示 <a href="ajaxclick.htm" rel="ajax5.htm" title="active ingredients"> $('#clickme').cluetip({activation: 'click', width: 650}); 6 圆角的 <a href="ajax4.htm" title="|first line body|second line body"> $('ol.rounded a:eq(0)').cluetip({splitTitle: '|', dropShadow: false, cluetipClass: 'rounded', showTitle: false});
推荐阅读
JavaScript关于select的相关操作说明
一、 插入option 1、DOM方法 var oSelectYear = document.getElementById("SelectYear"); var op = document.createElement("option"); op.innerHTML = "2010"; op.value = "2010"; oSelectYear.appendChild(op); >>>详细阅读
本文标题:jquery插件 cluetip 关键词注释
地址:http://www.17bianji.com/kaifa2/JS/27248.html
1/2 1