Skip to content

Commit

Permalink
提交新文件
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjie committed Sep 23, 2013
1 parent be7d1d7 commit 637ce1b
Show file tree
Hide file tree
Showing 11 changed files with 595 additions and 338 deletions.
3 changes: 3 additions & 0 deletions .idea/dictionaries/yangjie.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/jquery.contips.js.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions examples.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta name="description" content="contips" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>contips</title>
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="jquery.contips.js"></script>
<link type="text/css" href="contips.css" rel="stylesheet"/>
<style type="text/css">
body{

}
.bg{
position: absolute; left: 50%; top: 50%; margin: -100px 0 0 -180px;
width: 360px; height: 200px; background: #ddd;
}
.item{
display: inline-block; margin: 10px 25px;
width: 50px; height: 50px; background: #666;
border-radius: 100px; cursor: pointer;
font-size: 12px; line-height: 50px; text-align: center;
}
.item:hover{
background: #333;
}
.one4{
background: #fff;
border-radius: 3px;
}
.one4:hover{
background: #fff;
}
</style>
</head>
<body>


<div class="bg">
<p style="font-size: 14px; text-align: center">contips示例:鼠标操作下面的黑块</p>
<div class="item one1">滑过上</div>
<div class="item one2">滑过下</div>
<div class="item one3">点击</div>
<input class="item one4" value="点击输入框" />
<div class="item one5"></div>
<div class="item one6">显示</div>
</div>


<script type="text/javascript">

$('.one1').contips({
con: 'contips提示框<br>上'
});

$('.one2').contips({
align: 'bottom',
ready: function($elm,$tip){
$tip.find('.con').html( 'contips提示框<br>下');
} //数据回调
});

$('.one3').contips({
mode:'click', //显示的方式 instant hover click focus
con: 'contips提示框<br>点击出现'
});

$('.one4').contips({
mode:'focus', //显示的方式 instant hover click focus
con: 'contips提示框<br>输入框'
});

$('.one6').contips({
align: 'bottom',
mode:'instant', //显示的方式 instant hover click focus
con: 'contips提示框<br>默认显示'
});


</script>



</body>
</html>
6 changes: 6 additions & 0 deletions jquery-2.0.3.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 637ce1b

Please sign in to comment.