The jQuery plug-in jFade allows you to highlight other pictures that pass by the mouse,

Source: Internet
Author: User

The jQuery plug-in jFade allows you to highlight other pictures that pass by the mouse,

Today, we bring you a new jQuery plug-in jFade, which is highlighted by the mouse. This plug-in provides simple and practical functions, when you hover the mouse over the image list or text list, the current highlight is displayed. When the other image list is dimmed, the current hover is displayed.

Copy codeThe Code is as follows:
<! 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"
});
$ ('. Click'). 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 <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 <P> (Fade adjoining objects out) </p>
<Div id = "images">








</Div> <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/>
<P> and add the class tag to each element: </p>
<Code> <br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</code> <br/>
<P> Custom settings are easily set and explained in the help doc </p> <br/>
<H2> Portfolio Gallery 2 <P> (Fade objects in) </p>
<Div id = "images">








</Div> <br/>
<H2> Call to Action Button <P> (give buttons some flair) </p>
<Div id = "buttons">
<Ul>
<Li>
<A class = "small button green" href = "http://www.bkjia.com/" target = "_ blank"> Green </a>
<A class = "small button blue" href = "http://www.bkjia.com/" target = "_ blank"> Blue </a>
<A class = "large button pink" href = "http://www.bkjia.com/" target = "_ blank"> Pink </a>
<A class = "small button orange" href = "http://www.bkjia.com/" target = "_ blank"> Orange </a>
<A class = "small button yellow" href = "http://www.bkjia.com/" target = "_ blank"> Yellow </a> </li>
</Ul>
</Div> <br/>
<H2> Text <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 premo-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/>
<Div id = "footer">
<H2> Links <P> You can fade anything you like, by just adding a class-even links: <a href = "http://www.bkjia.com/" title = "Facebook" target = "_ blank" class = "links"> facebook </a>, <a href = "http://www.bkjia.com/" target = "_ blank" title = "Linkedin" class = "links"> linkedin </a>, <a href = "http://www.bkjia.com/" title = "Flavors. me Personal Page "target =" _ blank "class =" links "> flavors. me </a> </p> <br/>
</Div>
</Div>
</Body>
</Html>

The above is all the content in this article. I hope it will be helpful for you to master jQuery special effects.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.