The fancybox pop-up layer of the jquery pop-up layer plug-in supports image, article content, and Flash SWF pop-up layers.

Source: Internet
Author: User

Http://www.jsfoot.com/items/tab/ (good)


Http://www.jsfoot.com/jquery/items/2011-07-30/90.html

Http://www.jsfoot.com/jquery/items/index_2.html (good !)

Http://www.jsfoot.com/jquery/demo/2011-08-09/113.html

Fancybox v1.3.4

Different animation demos

Demonstration of titles in different locations

Image gallery (supports mouse playback)

Various instances

  • Content pop-up layer
  • Ajax content pop-up layer

<! 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> fancybox pop-up demonstration of jquery special effect plug-in </title>
<SCRIPT type = "text/JavaScript" src = "http://www.jsfoot.com/skin/js/jquery.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "JS/jquery. fancybox-1.3.4.js"> </SCRIPT>
<! -- Control scroll with the mouse -->
<SCRIPT type = "text/JavaScript" src = "JS/jquery. mousewheel-3.0.4.js"> </SCRIPT>
<LINK rel = "stylesheet" type = "text/CSS" href = "CSS/jquery.fancybox-1.3.4.css" Media = "screen"/>
<Style type = "text/CSS">
* {Margin: 0; padding: 0; List-style-type: none ;}
Body {Font: normal 12px/18px verdana, sans-serif ;}
# Content {width: pixel PX; margin: 40px auto 0 auto; padding: 0 60px 30px 60px; Border: solid 1px # cbcbcb; Background: # fafafa;-moz-box-Shadow: 0px 0px 10px # cbcbcb;-WebKit-box-Shadow: 0px 0px 10px # cbcbcb ;}
HR {border: none; Height: 1px; line-Height: 1px; Background: # e5e5e5; margin-bottom: 20px; padding: 0 ;}
# Content P {margin: 0; padding: 7px 0 ;}
# Content a IMG {border: 1px solid # BBB; padding: 2px; margin: 10px 20px 10px 0; Vertical-align: Top ;}
# Content a IMG. Last {margin-Right: 0 ;}
# Content ul {margin-bottom: 24px; padding-left: 30px ;}
</Style>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){

$ ("A # example1"). fancybox ();

$ ("A # example2"). fancybox ({
'Overlayshow': false,
'Transitionin': 'elastic ',
'Transitionout': 'elastic'
});

$ ("A # example3"). fancybox ({
'Transitionin': 'none ',
'Transitionout': 'none'
});

$ ("A # example4"). fancybox ({
'Opacity ': True,
'Overlayshow': false,
'Transitionin': 'elastic ',
'Transitionout': 'none'
});

$ ("A # example5"). fancybox ();

$ ("A # example6"). fancybox ({
'Titleposition': 'outside ',
'Overlaycolor': '#000 ',
'Overlayopacity ': 0.9
});

$ ("A # example7"). fancybox ({
'Titleposition': 'inside'
});

$ ("A # example8"). fancybox ({
'Titleposition': 'over'
});

$ ("A [rel = example_group]"). fancybox ({
'Transitionin': 'none ',
'Transitionout': 'none ',
'Titleposition': 'over ',
'Titleformat': function (title, currentarray, currentindex, currentopts ){
Return '<span id = "fancybox-title-over"> image' + (currentindex + 1) +'/'+ currentarray. Length + (title. length? '& Nbsp;' + title: '') + '</span> ';
}
});

$ ("# Various1"). fancybox ({
'Titleposition': 'inside ',
'Transitionin': 'none ',
'Transitionout': 'none'
});

$ ("# Various2"). fancybox ();

$ ("# Various3"). fancybox ({
'Width': '123 ',
'Height': '123 ',
'Autoscale': false,
'Transitionin': 'none ',
'Transitionout': 'none ',
'Type': 'iframe'
});

$ ("# Various4"). fancybox ({
'Padding': 0,
'Autoscale': false,
'Transitionin': 'none ',
'Transitionout': 'none'
});
});
</SCRIPT>
</Head>
<Body>
<Div id = "content">
<H2> fancybox <span> v1.3.4 </span> </H2>
<HR/>
<P> different animation demonstrations </P>
<P>
<A id = "example1" href = "example/1_ B .jpg"> </a>
<A id = "example2" href = "example/2_ B .jpg"> </a>
<A id = "example3" href = "example/3_ B .jpg"> </a>
<A id = "example4" href = "example/4_ B .jpg"> </a>
</P>

<P> title demonstration in different locations </P>
<P>
<A id = "example5" href = "example/5_ B .jpg" Title = "lorem ipsum dolor sit Amet, consectetur adipiscing elit. "> </a>
<A id = "example6" href = "example/6_ B .jpg" Title = "etiam Quis mi EU elit Tempor facilisis ID et neque. nulla sit Amet SEM Sapien. vestibulum imperdiet Porta ante AC ornare. vivamus Fringilla congue laoreet. "> /> </A>
<A id = "example7" href = "example/7_ B .jpg" Title = "CRAs neque Mi, Semper at interdum ID, dapibus in LEO. suspendisse nunc Leo, eleifend sit Amet iaculis et, cursus sed turpis. "> </a>
<A id = "example8" href = "example/8_ B .jpg" Title = "sed vel sapien vel SEM Tempus placerat EU ut tortor. nulla facilisi. sed adipiscing, turpis ut cursus molestie, SEM Eros Viverra mauris, Quis sollicitudin sapien enim NEC est. ras pulvinar placerat
Diam EU consectetur. "> </a>
</P>

<P> image gallery (playback with mouse control supported) </P>
<P>
<A rel = "example_group" href = "example/9_ B .jpg" Title = "lorem ipsum dolor sit Amet"> </A>
<A rel = "example_group" href = "example/10_ B .jpg" Title = ""> </a>
<A rel = "example_group" href = "example/11_ B .jpg" Title = ""> </a>
<A rel = "example_group" href = "example/12_ B .jpg" Title = ""> </A>
</P>

<P> various instances </P>
<Ul>
<Li> <a id = "various1" href = "# inline1" Title = "lorem ipsum dolor sit Amet"> content pop-up layer </a> </LI>
<Li> <a id = "various2" href = "ajax.txt"> Ajax content pop-up layer </a> </LI>
<Li> <a id = "various3" href = "http://google.ca"> IFRAME content pop-up layer </a> </LI>
<Li> <a id = "various4" href = "http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf"> Flash SWF file pop-up layer </a> </LI>
</Ul>

<Div style = "display: none;">
<Div id = "inline1" style = "width: 400px; Height: 100px; overflow: auto;">
Lorem ipsum dolor sit Amet, consectetur adipiscing elit. etiam Quis mi EU elit Tempor facilisis ID et neque. nulla sit Amet SEM Sapien. vestibulum imperdiet Porta ante AC ornare. nulla et lorem EU nibh adipiscing ultricies NEC at Lacus. CRAs laoreet
Ultricies SEM, at blandit mi eleifend aliquam. nunc enim ipsum, vehicula non presponvarius, cursus AC tortor. vivamus Fringilla congue laoreet. quisque ultrices sodales orci, Quis rhoncus Justo auctor in. phasellus DUI Eros, Bibendum EU feugiat ornare, faucibus
EU mi. nunc aliquet Tempus SEM, Id aliquam diam varius AC. maecenas nisl nunc, molestie vitae eleifend Vel, iaculis sed Magna. aenean Tempus Lacus vitae orci posuere porttitor eget non felis. donec lectus elit, aliquam NEC eleifend sit Amet, vestibulum SED
Nunc.
</Div>
</Div>

<P> the Ajax pop-up layer demonstration needs to be run from the server. </P>
</Div>
</Body>
</Html>

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.