Implementation of Movie ending effect and movie Effect

Source: Internet
Author: User

Implementation of Movie ending effect and movie Effect

Often, when watching movies, we will see a rolling subtitle about the film's director, scriptwriter, starring role, and friendly appearance, that effect can be achieved using html + css + div. The specific implementation code is as follows:

Html code:

<Div id = "movie"> <div id = "movieup"> </div>
<Marquee direction = "up" height = 400px;> <p> Director: *** </p> <p> scriptwriter: * ** </p> <p> Starring: ********** </p> <p> show-in: * ******* </p>
</Marquee>
<Div id = "moviedown"> </div>
</Div>

Scroll label: <marquee> text/image to be rolled </marquee>

Below is a list of some common attributes in the rolling label:

Scroll direction ction = up/down/left/right (up/down/left/right)

Scroll speed scrollamount = 4/5/6 (4/5/6 is the three scroll speeds suitable for everyone)

Scroll behavior = scroll/slide/alternate)

Number of scrolling times loop = 3 (three cycles)

Scrolldelay = 1000 (1000 ms means one second)

Limit the size of the scrolling area width = "height =" "bgcolor =" "(used to display the scrolling Area)

Onmouseover = this. stop () Onmouseout = this. start ()

(Move the mouse over the scroll to stop, move the mouse away from the scroll to continue)

Note: All of the above can be used as the <marquee> </marquee> label to add the desired effect to the attribute in the start label.

 

Css:

 #movie  {    width:360px;    height:400px;    background:url("F:\images\1.jpg");    border:1px solid #000000;    text-align:center;    margin:auto;    position:relative;  }  #movieup  {    width:100%;    height:40px;    background:#000000;    position:absolute;    top:0px;    }  #moviedown  {     width:100%;     height:40px;     background:#000000;     position:absolute;     bottom:0px;  }

  

 

I originally recorded the scrolling effect as a micro-video for you to see, but I don't know if this function is not available or I am a newbie and cannot find a place to upload a local video, you can only upload a static photo for the moment. You only need to know that it is a scroll up subtitle. This is just a simple application of rolling labels, the garden friends who see this article can add more styles to make it more colorful.

 

  

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.