Javascript simple marquee

Source: Internet
Author: User
A long time ago, I wrote a simple javascript code to rotate the page elements: copy the following code and paste it in the address bar, and press enter (IE6 \ 7 \ 8 tested): javascript: r100; shita0; functiona (element, speed, size, position) {vareedocument. getElementsByTagNa...

Simple JavaScript code written a long time ago allows page elements to rotate:
Copy and paste the following code in the address bar, and press enter (IE6 \ 7 \ 8 passed the test ):
Javascript: r = 100; shita = 0; function a (element, speed, size, position) {var ee = document. getElementsByTagName (element); if (! Ee) return false; setInterval (function () {for (I = 0; I

The last four parameters of function a are:
1. tags to be rotated
2. Speed
3. Rotate the square size
4. Center Position of rotation (some problems)

From: GUI empire

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.