今天为大家带来一款鼠标经过当前高亮其它变暗jQuery插件jFade,此款插件能实现的功能简单而且很实用,当鼠标经过图片列表或是文字列表时悬停当前高亮显示,其它图片列表变暗突出显示鼠标当前悬停。
复制代码 代码如下:
<!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=ISO-8859-1" />
<meta name="Author" content="pakaerf">
<script type='text/javascript' src='jquery.min.js'></script>
<script type='text/javascript' src='jfade.js'></script>
<link rel="stylesheet" href="main.css" type="text/css"/>
<script type="text/javascript">
$().ready(function() {
$('.jfade_image').jfade();
$('.portfolio').jfade({
start_opacity: ".4",
high_opacity: "1",
low_opacity: ".2",
timing: "500"
});
$('.button').jfade({
start_opacity: "1",
high_opacity: "1",
low_opacity: ".4",
timing: "500"
});
$('.text').jfade({
start_opacity: "1",
high_opacity: "1",
low_opacity: ".7",
timing: "500"
});
$('.links').jfade({
start_opacity: ".9",
high_opacity: "1",
low_opacity: ".2",
timing: "500"
});
});
</script>
</head>
<body>
<div id="wrapper">
<h1>jFade</h1>
<p>jFade is a simple jquery plug-in that lets you highlight items on your website. Not only are customizable fades possible, but easy control of surrounding elements makes your most important content stand out.</p><br />
<h2>Portfolio Gallery</h2><br />
<p>(Fade adjoining objects out)</p>
<div id="images">
<img src="/UploadFiles/2021-04-02/card02.jpg">
<img src="images/card04.jpg">
<img src="/UploadFiles/2021-04-02/card09.jpg">
<img src="images/card13.jpg">
<img src="/UploadFiles/2021-04-02/card14.jpg">
<img src="images/card15.jpg">
<img src="/UploadFiles/2021-04-02/card16.jpg">
<img src="images/card17.jpg">
</div><br /><br />
<p>To use default settings just add the function </p>
<code><script type="text/javascript"> <br />
$().ready(function() {<br />
$('.jfade_image').jfade();<br />
}); <br />
</script></code><br /><br />
<p>and add the class tag to each element:</p>
<code><img src="images/card02.jpg" class="jfade_image"/><br />
<img src="images/card04.jpg" class="jfade_image"/><br />
<img src="images/card09.jpg" class="jfade_image"/><br />
<img src="images/card13.jpg" class="jfade_image"/><br />
<img src="images/card14.jpg" class="jfade_image"/><br />
<img src="images/card15.jpg" class="jfade_image"/><br />
<img src="images/card16.jpg" class="jfade_image"/><br />
<img src="images/card17.jpg" class="jfade_image"/></code><br /><br />
<p>Custom settings are easily set and explained in the help doc</p><br /><br />
<h2>Portfolio Gallery 2</h2><br />
<p>(Fade objects in)</p>
<div id="images">
<img src="/UploadFiles/2021-04-02/card02.jpg">
<img src="images/card04.jpg">
<img src="/UploadFiles/2021-04-02/card09.jpg">
<img src="images/card13.jpg">
<img src="/UploadFiles/2021-04-02/card14.jpg">
<img src="images/card15.jpg">
<img src="/UploadFiles/2021-04-02/card16.jpg">
<img src="images/card17.jpg">
</div><br /><br />
<h2>Call to Action Button</h2><br />
<p>(give buttons some flair)</p>
<div id="buttons">
<ul>
<li>
<a class="small button green" href="https://www.jb51.net/" target="_blank" >Green </a>
<a class="small button blue" href="https://www.jb51.net/" target="_blank" >Blue </a>
<a class="large button pink" href="https://www.jb51.net/" target="_blank" >Pink </a>
<a class="small button orange" href="https://www.jb51.net/" target="_blank" >Orange </a>
<a class="small button yellow" href="https://www.jb51.net/" target="_blank" >Yellow </a></li>
</ul>
</div><br /><br />
<h2>Text</h2><br />
<p>(have subtle effects)
<div id="paragraphs">
<div id="column" class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus in eleifend justo. Aenean a porttitor enim. Sed aliquet ullamcorper euismod. Morbi dapibus pretium mauris. Pellentesque consequat ante et magna gravida eleifend. Donec et lorem nulla. Integer dignissim nisi et lectus bibendum ornare venenatis odio venenatis. Aliquam dignissim iaculis neque, sed accumsan erat aliquam porttitor.</div>
<div id="column" class="text">Quisque lobortis, turpis id ornare mollis, diam magna semper libero, lacinia pharetra lectus nibh eget purus. Aenean dignissim sollicitudin gravida. Suspendisse non leo at nunc tempus elementum. Curabitur vitae commodo libero. Sed erat tortor, ornare id luctus vel, ullamcorper eget lacus. Maecenas ac placerat lectus. Sed quis nunc vitae lacus dignissim interdum. </div>
<div id="column" class="text">Nulla facilisi. In et ante tellus, quis feugiat ante. Sed et lectus id ante viverra fringilla in eget nisi. Duis sit amet augue lorem, quis luctus erat. Morbi sed diam id orci lacinia tincidunt vel auctor velit. Etiam pulvinar nibh eget ante tincidunt rhoncus. Morbi commodo eros lobortis dolor suscipit eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </div>
</div><br /><br /><br /><br />
<div id="footer">
<h2>Links</h2><br />
<p>You can fade anything you like, by just adding a class - even links: <a href="https://www.jb51.net/" title="Facebook" target="_blank" class="links">facebook</a>, <a href="https://www.jb51.net/" target="_blank" title="Linkedin" class="links">linkedin</a>, <a href="https://www.jb51.net/" title="Flavors.me Personal Page" target="_blank" class="links">flavors.me</a></p> <br /><br />
</div>
</div>
</body>
</html>
以上就是本文的全部内容了,希望对大家熟练掌握jQuery特效能有所帮助。
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]