jquery banner carousel

1 Overview

Banner can be used as a banner advertisement on a website page, as a logo for an event, or as a headline in a newspaper or magazine. Banner mainly embodies the central intention, and the image clearly expresses the most important emotional thoughts or publicity center. In the past, many projects were mainly reflected in the display of pictures provided by customers on the homepage and login page. This document mainly introduces the basic usage and the display configuration transformation method combined with the homepage of our aeai_portal product.

2 Sample introduction

The sample structure is as shown below, images folder, js folder and indexhtml file.

  1. image: the image used in the sample;
  2. js: The storage location of jquery-1.10.2.min.js and slider.js;
  3. index.html: Sample display page.

 

The effect diagram of the page is as follows, which realizes the functions of timing automatic rotation, mouse hovering rotation, and manual rotation;

 

3 Portal configuration

The portal uses the traditional jQuery carousel method, which does not have the advantage of banner in terms of appearance and interaction. Let's introduce the configuration method of transforming into a banner on the home page.

3.1 Store pictures

Import the banner button image in the sample into the \webapps\HotServer\reponsitory\images file, as shown in the following figure:

3.2 Introducing js files

  1. Add the slider.js file in the sample to the webapps\portal\js folder. The jquery.js file in the sample does not need to be imported. There is a built-in jquery.js file in webapps\portal\js.
  2. Introduce the slider.js file into the home page (PortalPreset.jsp) page in the \webapps\portal\themes\out\website folder, as shown in the following figure:

3.3 Retrofit portlets

Navigate to the static data in the data management, as shown below:

Modify the JQuery image to play static data, as shown in the following figure.

3.4 Effect display

4 Description of accessories

  1. Banner sample: Banner carousel sample project.
  2. Portal Modifications: Reference documents for portal modifications.
    • PortalPreset.jsp: File under \webapps\portal\themes\out\website.
    • 静态数据.txt:数据管理导航进到静态数据下的JQuery图片播放模板代码。

附件及文档下载地址:https://pan.baidu.com/s/1dE6rqMH

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326820498&siteId=291194637