Dynamic Web page production (II.)

Source: Internet
Author: User
Application of filter: Opacity article

<OnlyOso> statement:
Sorry, the description of the previous article is problematic.
The following is the corrected article, hoping to be boarded.
</OnlyOso>
To give people a good first impression, the special Web page initialization way played a role.
This time we will talk about the application of opacity in the filter.
Filter is an element's special effects property that can be used on any visible element in the page. such as body, text, pictures, line lines, plug-ins and so on.
And the opacity in the filter is to adjust the transparency.
When opacity is 100, the page element is completely opaque.
When opacity is 0 o'clock, the page element is fully transparent.
Filter is a string that is used in JavaScript in the
such as: object.style.filter= "Opacity=50", the object to the translucent.
The following page code is an example of their application:
<title>Example</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type= "Text/css" >
<!--
Body {background-color: #0066CC; Filter:alpha (opacity=0); Background-image:url (Http://www.oso.com.cn/image/logo.gif)}
-->
</style>
<script>
var curopa=0;
Function ol ()
{
curopa+=10;
Document.body.style.filter= "Alpha (opacity=" +curopa+ ")";
if (curopa<100) settimeout ("Ol ();", 1);
}
</script>
<body bgcolor= "#FFFFFF" text= "#000000" >
</body>Have a better please contact me to discuss, thank you.


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.