Created
December 26, 2017 10:40
-
-
Save summyer/e813a01c3b4a2e206b3916e60043939d to your computer and use it in GitHub Desktop.
jq、js、css片段
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//onmouseover="mouseOver(this,'#tip1','${community.communityAddress}');" | |
//onmouseout="mouseOut(this);" | |
function mouseOver(t, select, data) { | |
if (data.length < 25) { | |
return; | |
} | |
var index = layer.tips(data, select, { | |
tips: [3, '#3595CC'], | |
time: 40000000000, | |
maxWidth: 350 | |
}); | |
$(t).data("index", index); | |
} | |
function mouseOut(t) { | |
layer.close($(t).data("index")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment