Allows webpage images to be rotated

Source: Internet
Author: User
The Rotation filter allows the image to be rotated. Please note that it must be IE5.5 or IE6.0! The method is as follows:

Production process:

1. Prepare one image.

2. Create a CSS style as the image border.

Code:

<Style>
Body img {border: 3 gold ridge}
</Style>

3. Place the following code between

Code:

<Script language = "JavaScript">
Var I = 0;
Function playImg ()
{
Image. style. filter = "progid: DXImageTransform.
Microsoft. BasicImage (Rotation = "+ I + ")";
I ++;
If (I> 4)
{I = 1 };
Mytimeout = setTimeout ("playImg ()", 1500 );
}
</Script>

4. Put the following code in <body>.

<Body bgcolor = "# FFFFFF" text = "#000000" onload = "playImg ()">

</Body>

<

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.