基于jquery实现鼠标点击展开描述



32 127 43



特效描述:基于jquery实现 鼠标点击 展开描述,基于jquery实现鼠标点击展开描述

代码结构

1. 引入CSS

<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/jquery.gridquote.css">

2. 引入JS

<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.gridquote.min.js" type="text/javascript"></script>

3. HTML代码

<div class="wrapper">
	<div class="popover top">
	    <div class="arrow"></div>
	    <div class="popover-inner">
	      <!-- <h3 class="popover-title"></h3> -->
	      <div class="popover-content">
	        <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. 
			Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
	      </div>
	    </div>
 	</div>
	<div class="grid-container">
		<div class="thumb-container" data-title="Optional Background Color" data-fontsize="27" data-bgcolor="green">
			<img src="imgs/thumbs/thumbnail1.png" alt="" class="grid-img">
			<div class="quote-container">
				<p>
					<span class="date-info">11 Jun, 2013</span>
					It&#39;s responsive, please try to resize your browser. Auto 
					delay slideshow, optional hover to pause. You can put any 
					content in this quote block. <br />
					Please click the same thumbnail again to close this panel.
					<br />
					<span class="little-info">
						--- <a href="http://codecanyon.net/user/sike">Link to my 
					profile</a>
					</span>
				</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Optional Font Size" data-bgcolor="orange">
			<img src="imgs/thumbs/thumbnail2.png" alt="" class="grid-img">
			<div class="quote-container">
				<img src="imgs/lychee.jpg" alt="" class="info-img">
				<p class="light-info2">
					Change the font color. You can put any content in here, a 
					image for example. Consectetur adipisicing elit. Reiciendis, 
					quia, porro, ab nihil quidem suscipit dolorum unde amet 
					consectetur nam numquam at ut doloremque saepe reprehenderit 
					cumque accusantium necessitatibus iste! Lorem ipsum dolor 
					sit amet, consectetur adipisicing elit. Architecto, 
					doloribus sequi nihil possimus hic magni nesciunt dolorem 
					rerum suscipit laudantium minima molestias eaque 
					necessitatibus recusandae minus sit saepe iste sint.
					<br />
			        <span class="little-info">--- <a href="http://codecanyon.net/user/sike">
					A link here</a> </span>
				</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Bertrand Russell">
			<img src="imgs/thumbs/russell.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>
					<span class="light-info">a British philosopher, logician, 
					mathematician, historian, and social critic.</span>
					<br />
					If a man is offered a fact which goes against his instincts, 
					he will scrutinize it closely, and unless the evidence is 
					overwhelming, he will refuse to believe it. If, on the other 
					hand, he is offered something which affords a reason for 
					acting in accordance to his instincts, he will accept it 
					even on the slightest evidence. The origin of myths is 
					explained in this way.
				</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Dorothy Parker" data-bgcolor="pink">
			<img src="imgs/thumbs/parker.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>I&#39;m never going to be famous. My name will never be writ 
				large on the roster of Those Who Do Things. I don&#39;t do any 
				thing. Not one single thing. I used to bite my nails, but I 
				don&#39;t even do that any more.</p>
			</div>
		</div>
		<div class="thumb-container" data-title="E. B. White">
			<img src="imgs/thumbs/white.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>
					<span class="date-info">Some other information here</span>
					<br />
					I would feel more optimistic about a bright future for man 
					if he spent less time proving that he can outwit Nature and 
					more time tasting her sweetness and respecting her 
					seniority.
				</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Paul Valery">
			<img src="imgs/thumbs/valery.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>The folly of mistaking a paradox for a discovery, a metaphor 
				for a proof, a torrent of verbiage for a spring of capital 
				truths, and oneself for an oracle, is inborn in us.</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Daniel Webster, Address at the laying of the cornerstone of the bunker hill monument" data-fontsize="16">
			<img src="imgs/thumbs/webster.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>Let us develop the resources of our land, call forth our 
				powers, build up its institutions, promote all its great 
				interests, and see whether we also, in our day and generation, 
				may not perform something worthy to be remembered.</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Adlai E. Stevenson Jr., Welcoming address before the Democratic national convention, Chicago, Illinois, July 21, 1952" data-fontsize="14">
			<img src="imgs/thumbs/adlaistevenson.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>What counts now is not just what we are against, but what we 
				are for. Who leads us is less important than what leads us-what 
				convictions, what courage, what faith-win or lose. A man doesn&#39;t 
				save a century, or a civilization, but a militant party wedded 
				to a principal can.</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Albert Einstein">
			<img src="imgs/thumbs/einstein.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>
					<span class="light-info">Albert Einstein was a German-born 
					physicist who developed the theory of relativity. He is 
					considered the most influential physicist of the 20th 
					century.</span>
					<br />
					Gravitation cannot be held responsible for people falling in 
					love. How on earth can you explain in terms of chemistry and 
					physics so important a biological phenomenon as first love? 
					Put your hand on a stove for a minute and it seems like an 
					hour. Sit with that special girl for an hour and it seems 
					like a minute. That&#39;s relativity.</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Socrates" data-bgcolor="white">
			<img src="imgs/thumbs/socrates.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>Regard your good name as the richest jewel you can possibly 
				be possessed of - for credit is like fire; when once you have 
				kindled it you may easily preserve it, but if you once 
				extinguish it, you will find it an arduous task to rekindle it 
				again. The way to gain a good reputation is to endeavor to be 
				what you desire to appear.</p>
			</div>
		</div>
		<div class="thumb-container" data-title="Oscar Wilde" data-bgcolor="brown">
			<img src="imgs/thumbs/wilde.jpg" alt="" class="grid-img">
			<div class="quote-container">
				<p>Most modern calendars mar the sweet simplicity of our lives 
				by reminding us that each day that passes is the anniversary of 
				some perfectly uninteresting event.</p>
			</div>
		</div>
	</div>
</div>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 图片叠加 图片层叠 图片放大镜 头像上传 图片上传 图片翻转 图片旋转 图片延迟加载 图片延迟 图片加载 图片淡出淡进 图片淡出 图片淡进 二维码 图片全屏 图片拖动 图片拖拽 带缩略图的幻灯片 图片放大缩小 图片缩放 图片大小 图片放大 图片缩小 图片变大 图片变小 h5图片动画 h5图标动画 html5图片动画 html5图标动画 滑动选项卡 滑动切换 图片广告 地图 中国地图 世界地图 滚动切换 滚动条切换 图片滚动 图片滚动条 旋转木马 图片旋转木马 文字旋转木马 旋转木马插件 图片切换 图片选项卡 图标选项卡 图片滑动 图片滑块 图片收缩展开 图片收缩 图片展开 纯图片轮播 图片轮播 图标导航 图标菜单 自动滚动图片轮播 选项卡切换 选项卡 切换 tab切换 页面切换 选项卡插件 切换插件 背景切换 大图切换 滑动手风琴 手风琴 水平手风琴 垂直手风琴 图片手风琴 文字手风琴 手风琴插件 滑动星星打分 图表 图片 图片插件 头像截图 其他 鼠标悬停 图片切换 图片选项卡 图标选项卡 文字切换 文字选项卡 图片网格 选项卡自动切换 图片文字

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到