An open API service indexing awesome lists of open source software.

https://github.com/threefish/floattip

跟随鼠标的悬浮气泡提示框,可以自定义样式,采用原生JS,兼容IE
https://github.com/threefish/floattip

Last synced: about 2 months ago
JSON representation

跟随鼠标的悬浮气泡提示框,可以自定义样式,采用原生JS,兼容IE

Awesome Lists containing this project

README

        

# FloatTip
## 用法1:

```javascript
var d=document.getElementById(el);
var floatTips=new Tooltip(d, {
width: 300,
backgroundColor: '#FAFCFD',
borderColor: '#000',
textColor: '#666',
maxWidth: 250,
mouseFollow: true
}, title);
floatTips.destory();//全部销毁
```
## 用法2:
```javascript
var floatTips = new FloatTip($("#id"), {
mouseFollow: true,
className: "filedName-tips"
}, $(this).html());
floatTips.destory();//全部销毁
```