Table of contents
Installation and adjustment
Copy files (settings-free.txt, sprigst_scroller.js, sprigst-scroller-free-v1.swf) in the catalogue of your site on a web-server. Create files of scrolled elements if they are not created yet. Also edit a configuration file of scroller. Now scroller is established and ready to embedding in a web-page.The scrolled element, as a rule, consists of 2 files: a file of contents (.html) and a file of styles (.css). If some elements should have identical registration it is enough to create one file of styles and to use it for different elements. You can refuse use of a file of styles and set parameters of registration of an element in a file of contents. You also can use a plain text, image and flash movie as scrolled elements. Adjustment is carried out by the instruction of parameters in a configuration file. By default the file of adjustments refers to settings-free.txt.
In the file of adjustments use of comments is supposed: the one-line comment begins with //, multi-line case begins with /* and comes to an end */.// It is the single-line comment … /* It is the multi-line comment */
Parameters of a configuration file
The section articles contains the list of scrolled elements. Each element contains following parameters:- src - URL to a html-file of a contained element of scrolling (required)
- css - URL to a file of styles (optional)
- bgColor - colour of a background of scrolled element (optional)
- borderColor - colour of the frame of scrolled element (optional)
"articles":[ { "src":"./contents/sample_0.html", "bgColor":"0xffccff", "borderColor":"0xff0000", }, { "src":"./contents/sample_1.html", "css":"./contents/sample_1.css", "borderColor":"0x00ff00", }, { "src":"./contents/sample_2.jpg" } ]In the given example for the first element:
- contents are in a file ./contents/sample_0.html
- the background colour set to 0xffccff and the colour of bounding frame set to 0xff0000
- there is no any styling.
- the parameter of a file of styles and parameters of a background is defined
- contents of an element are in a file ./contents/sample_1.html
- this element have transparent background and green border.