Turn: Atmospheric cool Focus Carousel Chart js effect

Source: Internet
Author: User

How to use

Step 1. Introduction of related files in HTML tags

<script type="Text/javascript" src="Js/myfocus-2.0.0.min.js" ></script><!--Introduction of Myfocus Library--><script type = "Text/javascript"  src = "js/mf-pattern/slide3d.js" ></script><! --introduced style js file --><link href=  "js/mf-pattern/slide3d.css"  type= "text/css"  /><! --introduced style CSS file -->  

Hint: In the case of qualifying, the introduction of style files (JS/CSS) can be saved and introduced into the Myfocus library. How is the style file introduced automatically? For details, see Myfocus's file Structure and auto-introduction style file mechanism.

Step 2. Create a Myfocus standard HTML structure and populate your content

<div ID="Boxid" ><!--Focus Picture Box-<divClass="Loading" >="Img/loading.gif" alt="Please wait ..."/></div><!--Loading screen (can be deleted)-<divClass="Pic" ><!--Table of contents (number of Li can be added or decreased)-<ul> <li><a href="#" >="Img/1.jpg" thumb="" Alt="Heading 1" text="Detailed description 1"/></a></li> <li><a href="#" >="Img/2.jpg" thumb="" Alt="Heading 2" text="Detailed description 2"/></a></li> <li><a href="#" >="Img/3.jpg" thumb="" Alt="Heading 3" text="Detailed Description 3"/></a></li> <li><a href="#" >="Img/4.jpg" thumb="" Alt="Heading 4" text="Detailed Description 4"/></a>< /li>        <li><a  Href= "#" >= "img/5.jpg"  thumb = " alt=< Span class= "Litelighterstyle" > "title 5"  text= " Detailed description 5 " /></a></li>  </ul>  </div></DIV>      

Description of the properties of the IMG tag:

Step 3. Called at any point after the Step1 code (recommended to be called before the head tag is finished)

You can simply call---only set its box ID, all other parameters are set by default:

<script type="Text/javascript" > Myfocus. Set ({id:' boxid '});</script>  

Or a detailed argument call:

<script type="Text/javascript" >myfocus. Set ({id:' boxid ',//Focus chart Box ID    
Pattern:name of ' mf_fancy ',//Style app 
Time:3,//toggle interval (seconds) 
Trigger:' click ',//Trigger Toggle Mode: ' Click ' (click)/' mouseover ' (hover) 
Width:,//Set Picture area width (pixels) 
Height:296,//Set Picture area height (pixels) 
TxtHeight:' default '//text-layer height setting (pixels), ' default ' is the defaults ' height, 0 is hidden} ';</script>  

Turn: Atmospheric cool Focus Carousel Chart js effect

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.