Enable full-screen image up/down, and enable full-screen image

Source: Internet
Author: User

Enable full-screen image up/down, and enable full-screen image

A simple and small function can be encapsulated as a plug-in as needed, and some configuration parameters are added, such as the delay time, expansion time, expansion effect, callback function, container, and so on.

<! DOCTYPE html>
<Html>
<Head>
<Title> </title>
<Style>
Body {
Margin: 0;
Padding: 0;
}


. Wrap {
Overflow: hidden;
Position: fixed;
Z-index: 99999;
Width: 100%;
Top: 0;
Left: 0;
}


. Div {
Overflow: hidden;
Position: absolute;
Width: 100%;
}


. D {
Background: url(1.jpg) center no-repeat;
Height: 100%;
}
</Style>
</Head>
<Body>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<P> This is the website content. </p>
<Div class = "wrap">
<Div id = "d1" class = "div">
<Div class = "d"> </div>
</Div>
<Div id = "d2" class = "div">
<Div class = "d"> </div>
</Div>
</Div>
<Script src = "jquery-1.8.3.min.js"> </script>
<Script>
Var h = $ (window). height ();
Var h1 = h/2;
$ ('# D1, # d2'). height (h1 );
$ ('. Wrap,. D'). height (h );
Certificate ('{d2'}.css ('top', h1 );
$ ('# D2 .d'hangzhou.css ('margin-top',-h1 );


SetTimeout (function (){
$ ('# D1'). animate ({'top':-h/2}, 3000 );
$ ('# D2'). animate ({'top ': h}, 3000, function (){
$ ('. Wrapp'). remove ();
});
}, 2000); // open it after a certain period of time


</Script>
</Body>
</Html>


Why does win8 enable the image in full screen mode?

Upload the image to the "image" folder in the "library" folder and open it again.
 
Why do I see full screen images on my computer?

That's because you use an image viewer by default to view images.
Select the open mode on the image, and then select the WINDOWS Image and fax viewer !!

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.