Development Journey (14): Background image Mobile plugin MYFLOATINGBG (floating background image effect, allowing the background to scroll as the page scrolls)

Source: Internet
Author: User

MYFLOATINGBG This plugin can help you add a removable background background to your Web page. You can use it for the background of the entire file, or for a few banner. It supports simple animation effects, and you don't have to make a flash file or animated GIF image. by jquery and pictures alone, you can make different effects. Because we separate the animation effect from the content, we can change the text and so on at any time without affecting its operation. This effect is very atmospheric, I think it can be used in fine restaurants, jewelry show and so on for display.

1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <title></title>6 <Scripttype= "Text/javascript"src= "Js/jquery.js"></Script>7 <Scripttype= "Text/javascript"src= "Js/jquery." Myfloatingbg.js "></Script>8 <Scripttype= "Text/javascript">9 $ (document). Ready (function(){Ten    One     $("#demoDiv1"). MYFLOATINGBG ({direction:-1}); A      - }); - </Script> the  - <styletype= "Text/css"> - Body{margin:0px; } - . M{Height:740px;  + text-align:Center;  - font-family:Microsoft ya Black, Arial, Helvetica, Sans-serif;  + Font-weight:Bold;  A font-size:36px;  at Line-height:740px;  -     } - </style> - </Head> -  - <Body> in  -  to <DivID= "DemoDiv1"BG= "Img/fw2.png"class= "M"> +   <Divstyle= "Color:rgba (222,222,222,0.4)!important;"> - Welcome to visit! the   </Div> * </Div> $ </Body>Panax Notoginseng </HTML>

JS code Download

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.