miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Electronic moving text

Author astass
Registered
#1 | Posted: 16 Jun 2010 12:31 | Edited by: astass 
DESCRIPTION: A simple script to create the effect of scrolling text on the site.

Installation and setup script

Connecting a script file templates\main_header.html after <head> insert code:


<script type="text/javascript" src="./templates/crawler.js"></script>
<script type="text/javascript">
marqueeInit({
uniqueid: 'mycrawler',
style: {
'padding': '0px',
'width': '60%',
'background': 'lightyellow',
'border': '1px solid #A0A0A0'
},
inc: 4, //maximum speed of the block (in pixels)
mouse: 'cursor driven', //behavior when the pointer. Possible values - ('pause' 'cursor driven' or false)
moveatleast: 1, //speed of ticker, when the pointer is outside the block
neutral: 150,
savedirection: true
});
</script>

---------------------------------------------------------------------------------------
Insert rows at the end of the file. (Do not forget to change the text in your message.)


<div style="padding-bottom: 10px;" align="center"><div class="marquee" id="mycrawler">
Here, write your text that will scroll in your running line!
</div></div>

In the templates folder to put the file crawler.js
Electronic moving text

Get about how to screen.
screen

Author astass
Registered
#2 | Posted: 18 Jun 2010 09:01 | Edited by: astass 
Looks quite interesting. Scrolling, you can control when moving the mouse ...
http://www.minibb.com/forums/storage/screenshots/123.gif

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Electronic moving text Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB