TinyPortal

Development => Block Codes => Topic started by: hawkeye on January 25, 2006, 11:07:19 PM

Title: Text Scroller snippet
Post by: hawkeye on January 25, 2006, 11:07:19 PM
Use javascript/html box. You can change the font color and the background color. You can make it wider if required and you can set the speed of the scroll by changing the "scrollamount" variable. The higher the number, the faster the speed of scroll.  This works great in right or left blocks. See mine in action at www.p3challenge.com.

<div
align="center"> <marquee bgcolor="#000080" scrollamount="2"
direction="up" loop="true" width="35%"> <center>
<font color="#ffffff" size="+1"> THIS
IS A COOL WAY TO MAKE YOUR TEXT SCROLL UPWARDS. IT IS EASY AND FAST LOADING
</font> </center> </marquee></div>
Title: Re: Text Scroller snippet
Post by: Xarcell on January 25, 2006, 11:36:02 PM
Very nice script though.
Title: Re: Text Scroller snippet
Post by: darthmactis on February 06, 2006, 06:20:39 AM
anyone now the code to add to this one to stop on mouse over?
Title: Re: Text Scroller snippet
Post by: darthmactis on February 06, 2006, 06:36:16 AM
NVM i Figuered it out ;D

Here is the code if someone wants it
<div
align="center"> <marquee bgcolor="#000000" scrollamount="2"
direction="up" loop="true" width="100%" onmouseover='this.stop()'onmouseout='this.start()'><center>
<a href="http://www.xeronix.net" target="_blank"><img src="http://www.xeronix.net/designs/button.jpg" alt="Xeronix" border="0"></a></center> </marquee></div>


Makes a good Affiliates Block
Title: Re: Text Scroller snippet
Post by: houston on February 07, 2006, 05:02:28 AM
Thanks This will come in handy.
Title: Re: Text Scroller snippet
Post by: mnichols7 on August 11, 2008, 01:07:31 AM
Got this one but I had to placed it in a script block for it to work and not in HTML block.  I am using TP-0.9.8  :up: