Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite

Jun 17th, 09 by Dicky | View Comments |
You maybe interested in our latest article Personal Facebook Fan Pages of Celebrities.

News Ticker is a fantastic way to present headlines or minor updates to your readers. The smooth scrolling effect will attract your readers and generate more clicks to your site. I am writing this tutorial as there are readers ask about this after they read my tutorial about content slider.

There are a lot of great tutorials discussing on how to implement news ticker, however most of the tutorials that i found are not really suitable for a beginner. So, i decided to use jQuery and its plugin jCarousel Lite to create a simple yet powerful news ticker.

Why i choose jCarousel Lite? it is because jCarousel Lite is a tiny but powerful plugin. Furthermore, you can easily tweak/configure it to achieve different effects. News ticker is just a sample application for this plugin.

Let’s start to create our news ticker using jCarousel Lite. Download both jQuery and jCarousel Lite before we can start.

news-ticker

Step 1

Let’s create a blank index.htm file, and include jQuery and jCarousel Lite. Also, create a blank style.css file for later use.

<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<script src="jquery-latest.pack.js" type="text/javascript"></script>
<script src="jcarousellite_1.0.1c4.js" type="text/javascript"></script>
</head>
</html>


Step 2

In the same document, create a <div> and name it as “newsticker-demo”. Basically, this is the container for the news ticker. We will have another <div> class name “newsticker-jcarousellite”. Remember, this is very important and you will need to use the same class name when you configure jCarousel Lite.

Step 3

In the “newsticker-jcarousellite” <div>, create an <ul> element. Each news will be an individual <li> element. In this example, i had created 6 news, so i will have 6 <li> elements(but i am not going to show all). We will have the thumbnail float to the left, while the title and other information float to the right.

<li>
    <div class="thumbnail">
        <a href="#"><img src="images/1.jpg"></a>
    </div>
    <div class="info">
        <a href="http://www.vladstudio.com/wallpaper/?knight_lady">The Knight and the Lady</a>
        <span class="cat">Category: Illustrations</span>
    </div>
    <div class="clear"></div>
</li>

Step 4

After you created your <li> element, it is the time for us to configure the jCarousel. Under the <head>, add these scripts:

<script type="text/javascript">
$(function() {
$(".newsticker-jcarousellite").jCarouselLite({
        vertical: true,
        visible: 3,
        auto:500,
        speed:1000
    });
});
</script>

The script itself is pretty straight forward. The “auto:500″ means it will auto-scroll every 500ms. There are a lot of options which you can configure easily. Refer the documentation for more information.

Step 5

Basically you had done everything, except styling your content. So, just copy and paste the scripts below in your style.css file.

* { margin:0; padding:0; }

#newsticker-demo {
width:310px;
background:#EAF4F5;
padding:5px 5px 0;
font-family:Verdana,Arial,Sans-Serif;
font-size:12px;
margin:20px auto;
}

#newsticker-demo a { text-decoration:none; }
#newsticker-demo img { border: 2px solid #FFFFFF; }

#newsticker-demo .title {
text-align:center;
font-size:14px;
font-weight:bold;
padding:5px;
}

.newsticker-jcarousellite { width:300px; }
.newsticker-jcarousellite ul li{ list-style:none; display:block; padding-bottom:1px; margin-bottom:5px; }
.newsticker-jcarousellite .thumbnail { float:left; width:110px; }
.newsticker-jcarousellite .info { float:right; width:190px; }
.newsticker-jcarousellite .info span.cat { display: block; font-size:10px; color:#808080; }

.clear { clear: both; }

Finish!

That’s all! You can view the demo here, or download the source code for your own project.

We regularly update articles about resources, tutorials and Wordpress to help designers and developers. If you are new to WebDesignBooth, why not subscribe to our RSS feed and get the latest updates immediately. You can also subscribe through email or follow us on Twitter.
  • http://webitect.net Kayla

    Pretty cool effect. I’ve worked with jQuery carousels before, but I always seem to mess with the code so much that I mess it up. :/ This is a great tutorial, I can see how it can be incredibly useful.

  • http://cssbrigit.com/CNews/entrada/2009061709020845 CSS Brigit | Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite

    Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite…

    News ticker, or news scroller is a fantastic way to display your latest headlines. In this tutorial, i am going to show how to implement this using jQuery and its plugin, jCarousel Lite….

  • http://design-newz.com/2009/06/17/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite-2/ Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite | Design Newz

    [...] Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite [...]

  • http://webupd8.blogspot.com Andrew

    Any idea how to pull a rss feed to use in this news ticker? I’m interested on how to do it without php as I would need it for a blogspot.com blog.

  • http://www.orphicpixel.com Mars

    now i got what i am looking for

  • http://cupofteacreations.com Dana Severance

    Hey! I was looking at the html/css and saw somewhere where a bit of improvement could be made.

    You could clean up your html by using the following:

    The Knight and the Lady
    Category: Illustrations

    There is a neat way to clear floats with css. You could either have an overflow: auto; on the li or use the following code to the same effect:

    li {height: 1%;} /* IE fix */
    li:after {content: ‘.’; clear: both; display: block; height: 0; visibility: hidden;}

  • http://cupofteacreations.com Dana Severance

    Well, the html refused, so I’m posting it again, this time with html char goodness.

    <li> < >
    <a href=”#”><img src=”images/1.jpg” class=”thumbnail”></a>
    <div class=”info”>
    <h2><a href=”http://www.vladstudio.com/wallpaper/?knight_lady”>The Knight and the Lady</a></h2>
    <p class=”cat”>Category: Illustrations</p>
    </div>
    </li>

  • http://www.howtoit.com/2009/06/create-a-vertical-news-ticker-in-jquery/ Create A Vertical News Ticker In jQuery | How to it

    [...] it out now. view article Bookmark this [...]

  • http://www.webdesignbooth.com dicky

    Hi Andrew, i know there is a jQuery plugin which is able to do so. It doesn’t require php. Let me know if you want to know more, and i will try to research and write a tutorial for it.

  • http://www.webdesignbooth.com dicky

    Hi Dana,
    Thanks for your input. I almost forget this technique as most of the time i use clear:both;

    Again, thanks for your input!

  • http://justfly.idv.tw/2009/06/19/Just_708.html [Jquery]最新消息或相簿的輪撥 | JustFLY::JustBlog::

    [...] 看到這篇教學覺得還蠻不錯玩的 就下載回來試做了一下: [...]

  • http://www.thecreativitywall.com/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite/ The Creativity Wall

    Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite…

    AKPC_IDS += “,”;Popularity: unranked [?]……

  • http://warrozo.wordpress.com/2009/07/01/jquery-news-ticker/ jQuery News Ticker « Developers Haven
  • Stefano

    I think that it should be important to add scroll buttons (like previous/next) and the function to stop the autoscroll when the mouse is over a news or over the box.

    What do you think?

    Is it possible to do?

  • http://webdeveloperplus.com/jquery/15-jquery-tutorials-for-more-interactive-navigation/ 15 jQuery Tutorials For More Interactive Navigation

    [...] Tutorial Demo [...]

  • http://www.webdesignbooth.com dicky

    Yeah, it is possible to do that. For the autoscroll, i think my demo had already implemented right?

  • Stefano

    Yeah, sorry.

    For others the option is:
    hoverPause:true,

    Then remains to add manual scroll buttons, that i’ve already seen in jCarousel website, but i still can’t include in this news scroller

  • http://guidesigner.net/collection-of-development/best-jquery-interactive-navigation-tutorials-for-creative-designs/ Best jQuery Interactive Navigation Tutorials for Creative designs. | guidesigner.net

    [...] Tutorial Demo [...]

  • http://ruby.zigzo.com/ Ruby @Zigzo

    Hey Dicky,

    Thanks for such a concise tutorials. Was able to get this up and running in less than 20-30 minutes.

    I did some research on a vertical li scroller and this seems to be the best solution to cross my path.

    Thanks again.

  • http://www.webdesignbooth.com Dicky

    Hi Ruby,
    I am glad that you like my tutorial. I will have more tutorials coming in future. Make sure you subscribe or follow us in twitter. :)

  • http://www.extratuts.com/25-jquery-tutorials-roundup-with-examples 25+ jQuery Tutorials Roundup | ExtraTuts

    [...] Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite : View Demo [...]

  • Smokin Joe

    When I try to add the hoverPause:true code into the jCarousetlLite() function, it seems to ignore it.

    I can manipulate everything else (slow the speed at which is scrolls, how many entries are visible, etc…) except for the hoverPause:true

    Any help would be massively appreciated.

  • Smokin Joe

    It would seem like there is no hoverPause option within the 1.0.1 script.

    So I’ll go around the interwebs, see if someone’s created that portion of code that’ll pause on a mouse-hover, then restart the scrolling when the mouse-’unhovers’

    great script by the way, easy to understand and simple to integrate.

  • http://blogfreakz.com/jquery/the-best-tutorials-combining-htmlcssphp-and-jquery/ The best tutorials combining HTML,CSS,PHP and JQuery | blogfreakz.com

    [...] Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite [...]

  • Robbie

    View the demo > View the source > Access the carousell version used there, paste it in place of the downloaded demo’s version, refresh. Bingo!

  • http://smokinjoenews.com/weblog/?p=407 Riding on the jCarousel « Smokin Joe News

    [...] have the link here as soon as I get it working. However, the tutorial I used can be found right here, it is wonderfully straightforward and is also up to date with the syntax (rare [...]

  • Smokin Joe

    I tried simply supplanting jcarousellite_1.0.1 with jcarousellite_1.0.1c4 and it became broken.

    Now all my testimonials appear and simply sit statically.

    Any advice what might be wrong with the new jcarousellite_1.0.1c4 file, or what I’m doing wrong to implement it?

  • http://Kishoresays.com Kishore

    Thanks a tonnnnn

  • Aaron

    Great tutorial but I am having a few issues.

    1. When the number items is less than the number visible, it seems to scroll once, then reset and scroll the same items once more. I am trying to scroll 4 at a time and if there are lets say 9 items it does the weird scroll one at the end and then reset.

    2. if you dont have any thing in the list you get an error on the page. The reason for this is my list is dynamic so some days there might not be any.

    3. if you set it to scroll 2 at a time and show 4 but there are only 2 list items it only shows the second one and scrolls it really fats and you never see the first one.

    Also with it set to show 4 and only 4 list items it scrolls and then resets and then scrolls. it does not add the items below and scroll up. might be an issue with the counting items and adding them below if only as many as the show number.

    4. if you set it to carousel and auto start with only one list item nothing shows up. Shouldnt it calculate how many list items and if les than the how many to display then not scroll?

  • http://www.faqpal.com/story/3544 You are now listed on FAQPAL

    Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite…

    News ticker, or news scroller is a fantastic way to display your latest headlines. In this tutorial, i am going to show how to implement this using jQuery and its plugin, jCarousel Lite….

  • Dori

    I know this is a stupid question (I am still learning) but I followed everything exactly but keep getting the error message “jcarousel/jquery cannot be found. If the file exists on the server, use the Files panel to get the file from the server.”
    The page contents appear but don’t scroll- what did I do wrong? I saved the plugin in ‘scripts’ is that the wrong place? Thanks for help!

  • http://bachuk.com Alex

    Is there any way to change direction from “bottom to top” to “top to bottom”

  • http://www.webdesignbooth.com Dicky

    Hi Alex,
    I don’t think we can change the direction. Probably you can contact the plugin’s author and see whether he can include this feature to the next release. :)

  • http://lancecpljoshuambernard.blogspot.com/ Elafteletok

    Thanks! Good news :)

  • http://www.tekkraft.com Kapil Pendse

    Very useful. Thanks mate!

  • Ashar

    Thank you for the code. It is one of the easiest that I have come across. Appreciate the effort very much. ( I checked out most of your links :) and book marked the site)

  • http://verbdesign.com Jason Dinsdale

    I have found that with IE, the carousel is out of sync by a couple of pixels each time it rotates. I am using a tight space and showing only one record at a time. I have tried the demo in IE and the same thing happens. It resets to the correct position again when the rotation starts at one but with each record it displays two pixels short of the mark. I have tried various amendments with the css but to no avail. Any thoughts?? Great script otherwise!!

  • http://blog.ashfame.com/2009/09/3-creative-ways-showcasing-best-content-sidebar/ 3 creative ways of showcasing your best content on sidebar

    [...] Read – Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite [...]

  • http://www.goaliegigs.com Steve Sanyal

    Hi,

    I’ve used the technique and it works great in FF 3.5, Safari and Chrome, but it doesn’t seem to work in FF 3.0 and in IE 8. The ticker simply doesn’t move. Has anyone else encountered this?

    Thanks,
    STeve

  • http://www.hanshendrady.com Hans Hendrady

    Hi dude, thanks for this tutorial. I’ve been searched this for about 1 week, finally i landed to your cool website. thank you again.

    cheers, hans

  • http://www.webdesignbooth.com Dicky

    Hi hans,
    No problem, and i hope the tutorial can help you too. :)

  • http://www.webdesignbooth.com Dicky

    Hi Steve,
    I tried the script in both FF3.0 and 3.5 and it works. But i never try on IE8. Do you face any problem with IE6 and 7?

  • daniel

    hi!

    great one!
    However, there is a bug in your demo page: when loading the page for the first time or just by pressing on CTRL-F5, the inner divs get squeezed! Pressing then in F5 will display the divs correctly. The bug occurs in FF 3.5 and IE7. Is it a known issue? Do you have a fix for this? Thanks, Daniel-

  • http://fakkelteater.be Shahzad A.K.

    Thanks, I have been looking for this all over.

    Though in Chrome the demo has display problem. The pictures and divs are squeezed and its height is fixed to 20px.

  • http://fakkelteater.be Shahzad A.K.

    The problem in chrome gets solved if you give the class “thumbnail” the height.

  • Jason V

    I am having the exact same issue with IE. I have been working on this all morning with no luck. Did you ever find a solution?

  • Zeeshan Ahmad

    Thanks a lot Brother……..

  • Zeeshan Ahmad

    Can anybody tell me how i can reverse the order of scrolling? At the moment Auto scrolling starts from Downwards to upwards. I have a button that will reverse its scrolling order e.g it will start scrolling from top to bottom.

    If anybody have the solution then plz help me.

  • Josh

    If you open up jcarousellite_1.0.1c4.js, look for this code segment:

    o = $.extend({

    this is where the initial variable are set for the plugin, scroll down to line 220 where it says

    scroll: 1,

    change this to

    scroll: -1,

    this will change the direction of the animation

  • Daniel

    How to add pause to auto scroll when new set of items has arrived ?

  • Nikhil

    Hi
    I have tried the carousel with ie 8 and its not working. Is there any work around for this.Please help its urgent. Its working with every other browsers

  • http://www.aride.nl Bas

    Anyone found a soulution for this problem?

  • Nikhil

    Well i sorted out issue there was extrac coma that had to removed…

  • Jen

    Excellent, so straightforward.

  • http://www.chennaipage.com educational consultants chennai

    great to have it.. Thanks for the post.

  • http://www.greenleaf-net-solutions.com Colin Crawford

    How can we put the js files into a folder and still have it to work. Tried this and it stops working, I’m new with all this javascript and jquery.

  • Matt

    Check your paths to the js files.

    Also, make sure you use the xxx.c4.js file and not the pack file.

  • http://gallerycars.blogspot.com Gallery Cars

    very nice..! i like
    thanks for sharing

  • Cristian

    How I call the function stopAuto () or other function to stop scroll from an event of a button?

  • http://WebDesignExpert.Me/2010/01/19/web-design-contracts/ web design contracts | WebDesignExpert.Me

    [...] Create a vertical scrolling news ticker with jQuery and jCarousel Lite – Link. [...]

  • Ali

    How can we control the whole scrolling on click of any link or button instead of auto?

    Thanks for the step by step tutorial.
    Great Work!

  • Nathan

    I have a small problem with this script. I want to use it for displaying news, so I am not going to be using the link part of it.

    However, I want to display 2 at a time, but my descriptions of the news category are cut off because the box its in is too small. Is there a way to increase the size of the whole box it’s set in so I can see all of the text?

  • Nathan

    Nevermind. I didn’t have the CSS script in the right directory.

  • Jr. from Brazil

    How to include this index.htm in another page ?

    I try to put this code:

    But is not working

    Help-me !

  • Jr. from Brazil

    How to include this index.htm in another page ?

    I try to put this code:

    [code] [/code]

    But is not working

    Help-me !

  • Suzie

    Dear,
    Thanks for the News-Ticker ..it is fantastic
    am using it in my site, but in the same page am using another scrolling ticker and an image rotator
    the other ticker uses mootools and .js, when using your new-ticker, it conflict with mootools..
    what shall i do to avoid this conflict
    here are all the .js and mootools am using:

    where should I place :

    to avoid the confl;ict

    Please I need Help

  • eri

    is there a sample that contains buttons of previous and next?
    or could anyone show me how to make it?
    thanks

  • http://marcellscarlett.com Marcell Scarlett

    I just found a quick workaround for this:

    it may or may not work for you depending on whether you need margins or not.

    http://marcellscarlett.com/post/2010/02/11/jCarousellite-in-IE-7.aspx

    In my case, I was setting them all to zero.

  • http://kloningspoon.com Darto KLoning

    Great, thumbs up. Since i know how to use jcarousel lite from this site it’s make me easier when creating a slide content.

    thanks bro for the inspiration.

  • drooh

    @Shahzad A.K.

    Can you tell me how to fix this for chrome? Can you provide and example?

  • Clive

    Works well. But is there a way to have multiply line of text in the Category field? I’ve added several lines of text but it gets cuts of when it reaches the height of the thumnail image.

  • http://foto.marcol.art.pl Miron

    I think, I have the same problem as Clive. If I have 3 line of text in first 3 text lies then next one have the same height.

  • Thai

    it very nice Thanks

  • Daniel

    Thank you for this.

    Has anyone experienced a flash of all the ul content at page load – and suggestions to hide this?

  • Jarryd

    Hi, have been searching to no avail and i cannot find a way to load an rss feed using jquery and get the ticker to work… used the jgfeed plugin in this news ticker but the ticker stops scrolling… :( Any help will be appreciated… thanks… :)

  • Daniel

    I found the answer in the jcarousel documentation, thanks.

    New question – is there a “hover pause” functionality?

    Best,

  • http://alexander-webdesign.com Bry

    I like this scroller however if I have more then one ticker on a page the values display incorrectly.

    For example put this on a page:

    The Knight and the Lady
    The Knight and the Lady2
    The Knight and the Lady3

    The Knight and the Lady
    The Knight and the Lady2
    The Knight and the Lady3

    The second ticker starts at 2, if you add a 3rd it starts at the 3rd one, and finally if you add more then the number of items in a list sh!t starts to hit the fan fast.

    Any thoughts on how to fix this?

  • http://onDevelopment Sultan

    Thank u for the courousel…Searched a lot for a effect like this but finally got what I really wanted…and the tutorial was really very good…

  • http://www.spiralteck.com yinka web

    This is a real wonderful stuff, it’s just what i needed.

  • Vinay Kumar

    Dude,
    Thanks a lot for this nifty script. I have just one question. How do I control Stop and Start of the scroll dynamically??
    Example: Click Start button it starts scrolling and Stops on clicking on the stop button.

    Is there a function call I can make?

  • Clive

    Vinay,
    Doesn’t the scrolling stop when you hover your mouse pointer over the scrolling text?

  • Vinay Kumar

    Hmmm.. I have not tried that. But that is not what I need either. I am trying to generate a raffle kind of functionality which starts rolling on click of a button and stops after fixed number of rolls.

    There was nothing built in, but I modified the script a little bit to make it work for me.

  • Clive

    In my container div, setting left & right margins to Auto allows me to center the scrolling text in FF but not in IE8. For some reason, the scrolling script interferes with the centering on IE. Any suggestions?
    Thanks,
    Clive

  • Lee

    Hi, Love the scroller, it’s just giving me grief in IE6&7. Just doesn’t seem to listen to the over:hidden… It just displays the whole list…

    Any ideas to solve it welcome

    Thanks

  • Lee

    overflow:hidden

  • Man Mohan

    Hi,

    Cool Script, but “hoverPause:true,” in JS code:

    $(function() {
    $(“.newsticker-jcarousellite”).jCarouselLite({
    vertical: true,
    visible: 3,
    auto:500,
    speed:1000
    });
    });

    Please rectified it, bcz it’s creating confusion.

  • http://www.tomshw.it/forum/programmazione/152927-come-si-fa-questo-coso.html#post1428681 Come si fa questo coso? – Forum di Tom’s Hardware

    [...] [...]

  • http://depotwebdesigner.com freemh
  • http://www.doortoweb.net Abhishek Shah

    Excellent Works fine for me. . . .

  • captaincrunchandmaccaronis

    Hello, great tutorial. Myself even managed to make it work .. almost.

    I cant figure out how to make the height of the main info div (?) correspond to the content.. The height seems fixed to 150px or so. So when my entry is only a few lines long I end up with a big blank space between the entry and the next.

    Any ideas ? I’m very new to all of this and english is not my native language, sorry if not clear!
    Thanks very much

  • Joe Tale

    I am displaying in a vertical list and have changed the “scroll” to “-1″ so it scrolls from top to bottom. I set “visible” to 3.5 to show half of one item the problem is that it shows the half on the top of the list when I need it on the bottom. Any Help would be great to fix this issue!

  • http://www.funkdub.net Mr Funkdub

    For all of those you wanting to implement the BACK AND FORTH buttons – do this…

    First off, amend the script to this…

    $(function() {
    $(“.newsticker-jcarousellite”).jCarouselLite({
    vertical: true,
    visible: 3,
    auto:500,
    speed:1000,
    hoverPause:true,
    btnNext: “.next”,
    btnPrev: “.prev”
    });
    });

    Then add the buttons to your insert code (ps, this also shows you how to integrate with WordPress successfully.. I thank you!)

    <a href="” title=”" >

    <<
    >>

  • http://www.funkdub.net Mr Funkdub

    oops…

    <a href="” title=”" >

    <<
    >>

  • http://www.acs.gr D

    I am wondering if anyone knows if this is compatible with SquareSpace, because I have been trying for hours to get it to work. No luck.

    The frame, the divs, the links and everything else appear, but it refuses to move. Any suggestions?

    I have downloaded both files; however, I think maybe some of the functions are not being called. Can’t figure out why? Any help is greatly appreciated. Thanks!

  • http://www.grupo1com.com Alejandro Morales

    Hi Dicky.

    I see a problem with the vertical display of the items, when I use IE7 -this problem was already addressed here, but had no answer from you so I hope that you can shed some light on it-.

    This is the site in question (the scroll is placed on the lower left side of the home page):

    http://www.sevime.com

    I am talking about a shift downwards (all of the move out of place) of a couple of pixels, creating a wider separation than selected between the top of the carousel and the highest positioned .
    This happens every time the scroll/carousel activates and then stops… and it gets worst because the separation adds up, so the next time the scroll activates and stops the gap is twice as wide, and so on…

    I’ve tried several techniques but nothing seems to work.

    Can you help me?

    Many thanks!,
    Alejandro

  • http://www.grupo1com.com Alejandro Morales

    Hi again.
    I can see that the comments area filters markup so my ladder post is not very clear.
    I am reposting it without the markup.

    Thanks again,
    A
    ———————
    (reposted comment)
    Hi Dicky.

    I see a problem with the vertical display of the items, when I use IE7 -this problem was already addressed here, but had no answer from you so I hope that you can shed some light on it-.

    This is the site in question (the scroll is placed on the lower left side of the home page):

    http://www.sevime.com

    I am talking about a shift downwards (all of the listItems move out of place) of a couple of pixels, creating a wider separation than selected between the top of the carousel division and the highest positioned listItem.
    This happens every time the scroll/carousel activates and then stops… and it gets worst because the separation adds up, so the next time the scroll activates and stops the gap is twice as wide, and so on…

    I’ve tried several techniques but nothing seems to work.

    Can you help me?

    Many thanks!,
    Alejandro

  • http://alboutsourcing.com ana

    Hi, how can I slow down the speed…

    Thanks.

    //Ana

  • JIN Liger

    Thanks for this useful post!

  • http://beben-koben.blogspot.com/ Beben Koben

    nice nice ^^

  • Neal

    I am trying to do this as well. I take its not possible with JQuery then? Can anyone suggest another way of achieving this effect without JQuery? I have been looking at free widgets but I cant find a suitible one

  • Aitruita

    Thank you soooooooooooo much!!! amazing…

  • varun s

    Its good….Thanks

  • http://www.sonichtml.com/2009/08/19/25%e4%b8%aa-jquery-%e5%ae%9e%e4%be%8b%e6%95%99%e7%a8%8b/ 25个 jQuery 实例教程 | 高品质 HTML+CSS 制作服务 – SonicHTML

    [...] Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite [...]

  • clister

    ***Awesome***

  • Shane

    Does anyone know how to add easing to this script. It appears to be a bit jumpy when going from one feed element to the next. I think this would add quite a nice touch to an already great script. Thanks!

  • Jo

    A very useful post indeed! Thank you so much!

  • http://www.mistersuraj.com Suraj

    Oh, I am sorry, I didn’t close the tag so, effect was overlapping……….

    Working great…………

    Thanks buddy!!!!!!!!!

  • http://elmerdesign.co.cc Elmer

    yeah i’ve encounter this too… how will you fix this conflict?

  • http://discusstech.org Techie Salsan

    Great post! I had been searching for this scrolling ticker solution. The code you provided was brilliantly easy to customize. Thank you for this post. Cheers!

  • http://www.webblog360.com/2011/02/dont-miss-new-25-jquery-tutorials/ Don’t Miss New 25+ jQuery Tutorials | Webblog360

    [...] Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite [...]

  • Chris Buonomo

    Did you ever find a solution to the IE7 pixel bug? I am having the same problem!

  • Chris Buonomo

    Nevermind. Found my solution elsewhere. For others facing the same problem, here…

    For anyone having problems in IE7/6 with vertical lists being a few pixels off on scroll, this is caused by IE7/6′s poor rendering. The fix that worked for me was to take the out of the flow and set it to a width of 100%. Someone previously suggested a javascript fix but a pure CSS solution is much better.

    .vertical-news li.item{
    width:100% !important;
    float:left !important;
    }

    for more info, go to http://www.gmarwaha.com/blog/2007/08/09/jcarousel-lite-a-jquery-plugin/?cp=16.

  • Jacob Jensen

    Hi, is there any way to combine this with this function: http://www.brightcherry.co.uk/scribbles/2009/02/26/jquery-auto-refresh-div-every-x-seconds/

    It would be great that it would reload the content of the container, from an external resource, when it reaches the last element.

  • Adam

    Hi Lee

    I’m having the same problem – it’s driving me nuts in IE7 – displays the whole lot – doesn’t respond to overflow hidden – this is my code:

    #newsticker-demo {
    width:465px;
    background:#DCF2CC;
    padding:3px 3px 3px 3px;
    font-family:Verdana,Arial,Helvetica,sans-serif;
    font-size:11px;
    margin:10px auto;
    height:300px;
    overflow:hidden;
    }

    #newsticker-demo a { text-decoration:none; }
    #newsticker-demo img { border: 2px solid #FFFFFF; }

    #newsticker-demo .title {
    text-align:left;
    font-size:14px;
    font-weight:bold;
    padding:5px 0;
    }

    .newsticker-jcarousellite { width:465px; height:300px; overflow:hidden; }
    .newsticker-jcarousellite ul li{ list-style:none; display:block; padding-bottom:1px; margin-bottom:5px; }
    .newsticker-jcarousellite .thumbnail { float:left; width:200px; }
    .newsticker-jcarousellite .info { float:right; width:240px; text-align:left; }

    You got any ideas?

    thanks

    Adam

  • son0nline

    thanh you so muck!

  • http://www.awarenesslife.com Matthew Applin

    Thank you for the awesome tutorial!

    Is it possible to make this scroll totally smooth? I’m just doing text, by the way.

    If I set the “auto” interval to 1, or even 0.01, there is still a pause inbetween each movement. I’ve also set the easing to “linear” to remove that from the equation.

    Next, I tried setting the scroll to more items total, and a longer duration, to minimize the pauses. With the duration set to 18000ms and 51 items, it looks great. One problem, it delays for 18000ms before getting started the first time, and every subsequent time.

    Page here: https://secure.awarenesslife.com/tickertest.cfm

  • RehanShah

    i tried to implement it, but getting the following error:
    $(“.newsticker-jcarousellite”).jCarouselLite is not a function
    [Break On This Error] speed:1000
    although i have included the jcarousellite_1.0.1c4.js file.
    if i separately run the code then it works fine but cause problem in my own page.

  • MMnemonic

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • http://www.webika.com Constantine

    How do I modify this code so the scroll is not stopping on the item, basically non-stop scroll.

    Would you please help me.

    Thank you,

    Constantine

  • http://croatia-istria.net croatia istria

    Very nice scrolling ticker!

  • http://www.dawgwear.net Jeanna

    I have a large white space under my ticker only in IE and I cannot figure out how to remove it. Any thoughts?

    Thanks!

  • Sam

    hey mate im pretty new to this. u give great tips. im trying to have 2 javascript code on one page, the other being lightbox. For some reason they do not work together on the same page. Could you please help. They are boh functions. I am new to this and need urgent help. I dont understand java at all.

  • http://itswadesh.wordpress.com/2011/05/07/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite/ Create A Vertical Scrolling News Ticker With jQuery and jCarousel Lite « Swadesh's Technology Note

    [...] file, and include jQuery and jCarousel Lite. Also, create a blank style.css file for later use. view plaincopy to [...]

  • http://www.grupo1com.com Alejandro Morales

    I found a solution for the extra pixel in IE7,

    It seems that IE7 renders de vertical alignment different than the other browsers -I beLive its has to do with “inline” and “block” elements-.

    So I changed it -only for IE7 using comments and external CSS files inside the tag- from the default (“baseline”) to “bottom”: “vertical-align:bottom;”

    This fixes the problem. Check my solution here:

    http://www.sevime.com

    And check this article on “vertical-align”:

    http://css-tricks.com/what-is-vertical-align/

    Cheers!,
    Alejandro

  • kibria

    Excellent plugin.
    To add ‘hoverPause’ I have added the below code in the jCarousellite function and it is working in my case. Is the code is corrrect:

    if (o.hoverPause) li.mouseover(function () { ul.stop(); }).mouseout(function () { running = false; go(curr); });

  • Khoda Ravi

    can you please tell me how to implement this code with magento ?
    is it possible ? 

  • Shweta

    how to sto scrolling o mouse over to news title???
    Is it possible to handle ??

  • Shweta

    stop on mouseover event???
     

  • Lordrt21

    Hello
    I’ve modified the scroller to be a horizontal one, however, although it works fine on Firefox, in IE and Chrome its not showing properly, any fix for this?

  • Lordrt21

    Hello
    I’ve modified the scroller to be a horizontal one, however, although it works fine on Firefox, in IE and Chrome its not showing properly, any fix for this?

  • Lordrt21

    Hello
    I’ve modified the scroller to be a horizontal one, however, although it works fine on Firefox, in IE and Chrome its not showing properly, any fix for this?

  • Lordrt21

    What I see is that in Firefox, I specified display for 4 images, however in IE 8, it gives me 5 images, which should not be the case, and also for the tag, it is not getting the css…

  • Ihatetomhicks

    Okay. I got the carousel to work within its own html file – but I then tried to add it to my index page – but this already uses jquery easyslider 1.5 – and the two just cancelled each other out an neither worked…. any idea on how I can implement the carousel at the top of my indez page ? (btw I switched it to horizontal)

    Great code… great tutorial… would be great if I can get jcarousel to work on the index page with easyslider :)

    Thanks

  • Lordrt21

    Is it working properly on IE 7 or 8? Mine is bugging with the slideshow when I made it horizonzal.

  • Lordrt21

    Ooops wrongly replied, was hinting at Ihatetomhicks here sorry

  • Jason

    This is great thanks so much I’ve been looking for this for ages and this was by far the easiest to follow and integrate – works perfectly on IE, chrome, FF & Safari! 

    Would like to be able to stop the text on hover though and have a constant scroll – is this possible?

  • Batuhan

    How I can add prev and next buttons? Please help me. :(

  • ifraheem

    Good Example

  • Buianhtai89

    Thanks !

  • Aarif Khadrani

    jCarousel Lite not working on pressing ctrl+f5 on firefox, while it is working on pressing f5

     

  • Mehdi

    thank you for this good work.
    is it possible to set the item position? to show from a querystring?
    http://localhost/Mysite/NewsPicker/news-ticker/index.htm?ItemPosition=3

  • Jerry_stuthers

    sada

  • MNY

    put this news-ticker in new page and display it in your page inside iframe

  • Zcabalin
  • Zcabalin
  • Zcabalin
  • Mail2salaam

    Hello

  • Jeff

    Thank you! It’s that simple jquery btnNext/btnPrev I forgot about. Very helpful tip.

  • Akjethwani287

    This is nice plugin but it is showing a deprecated function…..

    the error is :
    “Deprecated: Assigning the return value of new by reference is deprecated in 
    newsScrollersimplepie.inc on line 720

    Deprecated: Assigning the return value of new by reference is deprecated in newsScrollersimplepie.inc on line 1087Deprecated: Assigning the return value of new by reference is deprecated in newsScrollersimplepie.inc on line 1595Deprecated: Assigning the return value of new by reference is deprecated in newsScrollersimplepie.inc on line 1636″….>>”

  • mona

    Hi, thanks for the code, but I have an issue on Safari, it shows 5 times faster than others, how can I fix it?

  • Amrita Patil16

    Thanx dear…..so sweet of you

  • Peter

    Many thanks! Excellent work from you!

  • Byron

    You can easily make the news go downwards by changing in jcarousellite_1.0.1c4.js the values start from 0 to 1 and the value scroll from 1 to -1. 

  • Dimitris

    Is it possible το make the rollling not stopping to each element? Something like that: http://d2o0t5hpnwv4c1.cloudfront.net/413_newsTicker/demo/simpleTicker.html ?

  • Anonymous

    Great tutorial… 

  • jkabugu

    i like the fact that your demo page is clean… only the code that one needs. all posters should copy such neatness.

  • Hawk

    I wish to read the image,title,category from  Sql database from ASPX page,
    below is my table
    IdNew
    EventTitle
    EventCategory
    ImageLocation
    EventUrl

    Can you please help to make it dynamic?

  • George Brande

    hello. i want to know your opinion on this subject : i tried this tutorial http://www.webdesignbooth.com/create-a-vertical-scrolling-news-ticker-with-jquery-and-jcarousel-lite/ , it s greate by the way . It displays great on firefox, and opera. but it displays slimmer on Internet explorer and Chrome. every picture has 50 px height, the 2 problematic browsers only display 25px of it. what is the cause of this problem? thanks !

  • http://www.travellerbase.net John

    Thank you nice tutorial

  • http://twitter.com/monikaborua Monika Borua


    Very effective article.
    You are very helpful person. Thanks!

  • http://twitter.com/monikaborua Monika Borua


    Very effective article.
    You are very helpful person. Thanks!

  • http://www.allaspectsuk.co.uk/location/west-midlands/wolverhampton/pest-control.asp Jona

    This is a nice content.There are a lot of great tutorials discussing on how to implement news ticker.I like this on.Thanks to share this blog with us.Keep it up.I will keep share in future.

  • http://www.allaspectsuk.co.uk/location/west-midlands/walsall/pest-control.asp Galina

    This is a
    nice content.There are a lot of great tutorials discussing on how to
    implement news ticker.The written skill is so good.I like this one.This is an
    amazing.I appreciate to this one.

  • Eloi

    Chrome and Safari have a height issue.

    it is solved by your opinion. :) Thanks~~~~~~

blog comments powered by Disqus