One runtime plug-in (continuous optimization) and a runtime plug-in for continuous optimization

Source: Internet
Author: User

One runtime plug-in (continuous optimization) and a runtime plug-in for continuous optimization

This is a rough plug-in 1.0 I wrote. The image scrolling function will be added in later versions !!

Usage:

I. HTML Template

<Div id = "marquee-wrapper"> <div> <p> This is a rough marquee I wrote. You can set the scroll direction and the specific width and height style, the speed can be set and will be continuously optimized later. </P> </div>

First, the frame of this marquee is fixed and cannot be changed. The id of the div at the outermost layer is determined by yourself.

Ii. attributes and Parameters

// Author: Nangxi // Version: 1.0 // attribute resolution possible value // id of the marquee custom // decoration scroll direction left, right, top, bottom // width of the headlight div width customized (unit: px) // height: self-defined div height (unit: px) // you can set the rolling speed of the speed.

Iii. Call

Var marquee = {id: "marquee-wrapper", decoration: "left", width: 500, height: 50, speed: 10}; scroll (marquee );

Edit the corresponding parameters and call the scroll () method.

Plug-in: https://download.csdn.net/download/qq_34551390/10312103

Related Article

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.