The plugin supports all popular browsers, such as: Opera, Mozilla Firefox, Google Chrome, Internet Explorer, Safari
All functionality is fully supported on the touch devices
You can pause Marquee when mouse hover, and play when mouse out
You can move Marquee by the mouse cursor for a comfortable reading or viewing position
The movement of the Marquee can be set both horizontally (left, right) and vertical (up and down)
The content can be any web page element - a simple text, images, tables, form elements, etc.
It is possible to upload text from an XML file
All parameters can be changed dynamically
Supports change of screen sizes
The content can be deleted, changed or added dynamically at any time
Detecting when a marquee is scrolled into view. Outside screen marquee stops. Inside screen marquee starts to move. When the page is scrolled, the line stops
Almost all of the events have a callback functions
For the lazy there is a set of predefined templates to suit different tastes
Unzip "liMarquee" (use "WinRAR" program, or other).
Go to the folder "quick_start".
In this folder you will find a file "CodeToCopy.html", folder "js" and the folder "css".
Copy the folders "js" and "css" into folder with your site. If you already have such folders, copy only the contents of these both folders.
Open the file "CodeToCopy.html" in any editor.
And copy its contents to the clipboard.
Paste this contents into the code of your page, in the place where a moving text should be.
If you have copied the files of scripts and styles into other folders, don't forget to change the path to them in code of including these files.
Save the changes in your file.
Done.
In place of the text string can be any html code or picture
Option | Default value | Datatype | Description |
---|---|---|---|
width | "auto" | String, Number | Sets width of the Marquee. It may take the values: any positive number or "auto" |
height | "auto" | String, Number | Sets height of the Marquee. It may take the values: any positive number or "auto" |
direction | "left" | String | Sets the direction of the Marquee It may take the values: "left", "right", "up", "down" |
scrollDelay | 85 | Number | Sets the interval between each scroll movement in milliseconds It may take the values: any positive number |
scrollAmount | 6 | Number | Sets the amount of scrolling at each interval in pixels It may take the values: any positive number |
circular | false | Boolean | Creates the effect of an infinite line. It may take the values: true, false |
dragAndDrop | true | Boolean | Enable the opportunity to drag the Marquee by the mouse It may take the values: true, false |
hoverStop | true | Boolean | Enable the opportunity to pause the Marquee when mouse hover It may take the values: true, false |
scrollStop | true | Boolean | Enable the opportunity to pause the Marquee when scroll page It may take the values: true, false |
startShow | false | Boolean | If it is true - the content of marquee appears immediately if the lie - gradually It may take the values: true, false |
xml | false | Boolean, String | Path to XML file. Imports an external XML file with content, and downloads the content in Marquee. It may take the values: XML file path or false |
removeContentFadeDuration | 300 | number |
The duration of fading when removing the content of marquee in ms It may take the values: any positive number |
touchEvent | true | boolean |
This parameter determines if the ticker responds to touch events or not It may take the values: true or false |
stopOutScreen | true | boolean |
This parameter specifies, the ticker will stop outside the screen or not It may take the values: true or false |
getContent() |
Returns the actual content of the Marquee This method does not accept any arguments $('.str').liMarquee('getContent'); |
addContent(string)
|
Adds to marquee the new content
string
Type: stringThe new content. $('.str').liMarquee('addContent','New Content'); |
removeContent() |
Remove from marquee all content This method does not accept any arguments $('.str').liMarquee('removeContent'); |
changeOptions(options) |
Restarts line with the new settings
options
Type: objectThe new options. $('.str').liMarquee('changeOptions',{direction:'right',circular:false}); |
destroy() |
Removes all the functionality of Marquee. It returns the element in the condition before the initialization of the plug-in This method does not accept any arguments $('.str').liMarquee('destroy'); |
stop() |
Stop movement Marquee This method does not accept any arguments This method does not accept any arguments $('.str').liMarquee('stop'); |
start(delay) |
Start movement Marquee
options
Type: NumberThe delay before starting the animation, ms. Default Value: 0 $('.str').liMarquee('start', 300); |
resetPosition() |
Reset start end end position of marquee Animation This method does not accept any arguments $('.str').liMarquee('resetPosition'); |
create() |
Triggered when the liMarquee is created
$('.str').liMarquee({ |
moveStart() |
Triggered when motion starts
$('.str').liMarquee({ |
moveStop() |
Triggered when motion stops
$('.str').liMarquee({ |
drag() |
Triggered while the string is moved during the dragging
$('.str').liMarquee({ |
dragStart() |
Triggered when dragging starts
$('.str').liMarquee({ |
dragStop() |
Triggered when dragging stops
$('.str').liMarquee({ |
wayEnd() |
Triggered when way ended
$('.str').liMarquee({ |
Universal Marquee for Text, HTML and Images
More than 10 000 people have been using it