...

View Full Version : JavaScript Scroller Help - Alert-It Scroller



urbanvoice
09-30-2009, 06:34 PM
Hello,

First, thanks for all of your help on this forum it's a great service. I found the following scroller which works exceptionally for what I need except for the fact it only works in I.E. Do any of you know what I can do to make it work for Safari & Firefox?

If not do you know of another scroller that works similar to this one? The key factor to this scroller is that it does not affect my CSS background (push things out of alignment.. etc..)


<marquee id="alertit" style="position:absolute;left:0px;top:0;background-color:#FFFFE6" onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=speed"></marquee>

<script type="text/javascript">

/*
Alert-It Scroller script- By JavaScript Kit
For this and over 400+ free scripts, visit http://www.javascriptkit.com
This notice must stay intact
*/

//Customize your message here. Use any HTML desired:
var themsg='<span style="font:italic 22px Arial;color:red;"><b>Breaking News: Microsoft Stock up 10 points! Source: <a href="http://cnn.com" target="_new">CNN</a></b></span>'
var speed=6 //speed of scroller (1-10 or more)

Fumigator
09-30-2009, 06:49 PM
If you don't mind a framework, jQuery has plenty of plugins that can handle this task. Here's one:

http://plugins.jquery.com/project/autoScroller

urbanvoice
10-01-2009, 05:08 PM
Thanks for the reply - the scroller you provided works great but the main scroller I am looking for is an auto news scroll that automatically scrolls news horizontally. Kind of like a news flash.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum