hotspot实现图片标记鼠标悬浮文字气泡弹出效果代码

代码语言:html

所属分类:弹出层

代码描述:hotspot实现图片标记鼠标悬浮文字气泡弹出效果代码

代码标签: 标记 鼠标 悬浮 文字 气泡 弹出 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!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=utf-8" />
<title>jQuery热点幻灯片 - 站长素材</title>

<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
h2{font-size:14px;font-weight:400;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";color:#333;}
</style>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/jquery.hotspot.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.17.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/modernizr.custom.2.8.1.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.hotspot.min.js"></script>
<script type="text/javascript">
$(document).ready(function($){
	
	//demo01
	$('#container1').hotSpot();
	
	//demo02
	var _pop2 = $('#container2').hotSpot({
		slideshow : false,
		triggerBy : 'click',
		autoHide : false
	});
	$('#image2').on('click',function(event){
		_pop2.hideCurrentPop();
	});
	
});
</script>
</head>
<body>

	<div class="container" id="container1">
	
		<h2>例如自动延时幻灯片,时暂停悬停</h2>
		
		<div class="popover right pop1" data-easein="cardInRight" data-easeout="cardOutRight" id="pop1">
			<div class="arrow"></div>
			<div class="popover-inner">
				<h3 class="popover-title">只要你喜欢,嵌入图像</h3>
				<div class="popover-content">
					<img src="//repo.bfw.wiki/bfwrepo/image/5e0e942fe0cbf.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" alt="small" />
					<p>这里的HTML内容。更改通过CSS的位置和大小。</p>
					<p>访问我的投资组合</p>
				</div>
			</div>
		</div>
	
		<div class="popover top pop2" data-easein="cardInTop" data-easeout="cardOutTop" id="pop2">
			<div class="arrow"></div>
			<div class="popover-inner">
				<h3 class="popover-title"><a href="http://www.17sucai.com/">请访问我的个人资料</a></h3>
				<div class="popover-content">
					<p>但是,他们是一脸的主要政策。我们有很好的狮子。我们玩了很多超过混凝土门廊。</p>
				</div>
			</div>
		</div>
	
		<div class="popover left pop3" data-easein="cardInLeft" data-easeout="cardOutLeft" id="pop3">
			<div class="arrow"></div>
			<div class="popover-inner">
				<h3 class="popover-title">Popover标题</h3>
				<div class="popover-content">
					<p>但是,他们是一脸的主要政策。我们有很好的狮子。我们玩了很多超过混凝土门廊。</p>
				</div>
			</div>
		</div>
	
		<div class="popover bottom pop4" data-easein="cardInBottom" data-easeout="cardOutBottom" id="pop4">
			<div class="arrow"></div>
			<div class="popover-inner">
				<h3 class="popover-title">然而,另一个标题</h3>
				<div class="popover-content">
					<p>但是,他们是一脸的主要政策。我们有很好的狮子。我们玩了很多超过混凝土门廊。</p>
				</div>
			</div>
		</div>
	
		<img src="//repo.bfw.wiki/bfwrepo/image/6073b7776e2d4.png" alt="info" class="info-icon info-icon1" data-target="pop1"  />
		<img src="//repo.bfw.wiki/bfwrepo/image/6073b7776e2d4.png" alt="info" class="info-icon info-icon2" data-target="pop2"  />
		<img src="//repo.bfw.wiki/bfwrepo/image/6073b7776e2d4.png" alt=".........完整代码请登录后点击上方下载按钮下载查看

网友评论0