实用jquery弹出提示层特效分享

1个月前 (04-11 14:37)阅读34回复0
大陆
大陆
  • 管理员
  • 发消息
  • 注册排名1
  • 经验值4714
  • 级别管理员
  • 主题942
  • 回复2
楼主

经典实用jquery弹出提示层特效分享,当用户的鼠标经过标题时弹出提示层,这个jquery弹出提示层特效兼容性很好。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren">
<meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。">
<title>实用jquery弹出提示层特效分享_武鸣人</title>
<style type="text/css">
html, body, div { 
    margin: 0;
padding: 0;
border: 0;
outline: 0;
vertical-align: baseline;
    font-family: "Verdana","lucida sans",Sans-serif;
font-size: 12px; 
}
html, body { 
    min-height: 100%;
color: #FFFFFF;
background-repeat: repeat-x;
background-position: top;
background-color: #161f2a;
}
.body_wuming_ren p {
    margin-bottom: 10px;
clear: both;
}
.body_wuming_ren p a {
width: 150px;
font-size: 1.5em;
color: #DDD;
border: 2px solid #DDD;
padding: 5px 0;
display: block;
text-align: center;
}
.www_wumingren {
width:250px;
    position: absolute;
    z-index: 999;
    left: -9999px;
    background-color: #dedede;
    padding: 5px;
    border: 1px solid #fff;
}
.www_wumingren p {
    color: #fff;
    background-color: #222;
    padding: 7px 7px;
margin: 0;
}
.www_wumingren p.wumingren01 {
background-color: #ff0000;
}
.www_wumingren p.wumingren02 {
background-color: #1c8600;
}
.www_wumingren p.wumingren03 {
background-color: #005fa8;
}
</style>
<script type="text/javascript" src="/img/jquery_wuming_ren.js"></script>
<script type="text/javascript">
function simple_tooltip(target_items, name){
 $(target_items).each(function(i){
$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");
var my_tooltip = $("#"+name+i);
$(this).removeAttr("title").mouseover(function(){
my_tooltip.css({opacity:0.8, display:"none"}).fadeIn(400);
}).mousemove(function(kmouse){
my_tooltip.css({left:kmouse.pageX+15, top:kmouse.pageY+15});
}).mouseout(function(){
my_tooltip.fadeOut(400);
});
});
}
$(document).ready(function(){
 simple_tooltip("a.wuming_ren","www_wuming_ren");
});
</script>
</head>
<body>
<a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr>
<!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。-->
<script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script>
<script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script>
需要加载js文件,请刷新后看效果<br />
<div class="body_wuming_ren">
<p><a href="#" class="wuming_ren">武鸣人一号</a></p>
<p><a href="#" class="wuming_ren">武鸣人二号</a></p>
<p><a href="#" class="wuming_ren">武鸣人三号</a></p>
<p><a href="#" class="wuming_ren">武鸣人四号</a></p>
<div id="www_wuming_ren0" class="www_wumingren"><p>武鸣人,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句!</p></div>
<div id="www_wuming_ren1" class="www_wumingren"><p class="wumingren01">武鸣人,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句!</p></div>
<div id="www_wuming_ren2" class="www_wumingren"><p class="wumingren02">武鸣人,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句!</p></div>
<div id="www_wuming_ren3" class="www_wumingren"><p class="wumingren03">武鸣人,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句!</p></div>
</div>
</body>
</html>


0
0
收藏0
回帖

实用jquery弹出提示层特效分享 期待您的回复!

取消
载入表情清单……
载入颜色清单……
插入网络图片

取消确定

图片上传中
编辑器信息
提示信息