jquery插件 cluetip 关键词注释
作者:bea
这个可以用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.titl
这个可以用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});
有用 | 无用
地址下载是: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});
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- AJAX的跨域与JSONP(为文章自动添加短址的功能)
- 前淘宝前端开发工程师阿当的PPT中有JS技术理念问题
- 20个非常有用的PHP类库 加速php开发
- javascript 特性检测并非浏览器检测
- javascript 构建一个xmlhttp对象池合理创建和使用xmlhttp对象
- extjs 为某个事件设置拦截器
- 利用onresize使得div可以随着屏幕大小而自适应的代码
- javascript 不间断的图片滚动并可点击
- Span元素的width属性无效果原因及解决方案
- javascript实现的基于金山词霸网络翻译的代码
- JQuery 引发两次$(document.ready)事件
- 用jQuery扩展自写的 UI导航
- jQuery的一些特性和用法整理小结
- JavaScript关于select的相关操作说明
- JavaScript获取鼠标坐标的函数(兼容IE、FireFox、Chrome)
- 海量经典的jQuery插件集合
- JQuery获取元素文档大小、偏移和位置和滚动条位置的方法集合
- jquery下操作HTML控件的实现代码
- jquery 交替为表格添加样式的代码