Page view counter

News Rotator

Last post 08-29-2008 11:31 AM by HypAJace. 2 replies.

Sort Posts:

  • News Rotator

    08-29-2008, 10:31 AM
    • Loading...
    • cshaw
    • Joined on 08-12-2008, 8:37 PM
    • Posts 17
    • Points 2

    Trying to come up with a way to create a app that will allow my frontpage designers to add news articles to frontpage and place them in a ticker like setting.  Where they will update on a timer or a button click.  Not very good with ajax.  Is there a way to do this with asp.net?

  • Re: News Rotator

    08-29-2008, 11:23 AM
    Answer
    • Loading...
    • jameswright
    • Joined on 08-28-2008, 3:56 PM
    • Morgantown, WV
    • Posts 137
    • Points 596

    Here's an idea. Maybe you could use Response.Write to write out a div containing the text you want to scroll. after the page loads, you can have a javascript function to get the that div element and scroll it's text. there's a plether of info out there on how to scroll text with javascript. Essentially.
     
    //asp.net
    Response.Write("<div id="newrotator">news news news news news news news</div>");

    //javascript
    document.getElementById("newsrotator");

    now you just need to figure out how to scroll it's contents.

    Just a stab in the dark and will need some more work, but maybe that'll kick start it.

    jameswright
    www.jwright.info

    "Never be so busy making a living that you forget to make a life."
  • Re: News Rotator

    08-29-2008, 11:31 AM
    Answer
    • Loading...
    • HypAJace
    • Joined on 10-28-2005, 1:47 PM
    • Colorado
    • Posts 80
    • Points 316

    The previous answer is right, you will need to use Javascript to scroll the contents of your ticker.  There are tons of free scripts on the web to do that.  You can store the news items in a database and read them into the page elements and have a client side script handle to animation and interaction with the contents.  I am not exactly sure what your question is, could have some other answers for you if you could be a bit more specific.

     

    Hope that helps!

    Jace

Page 1 of 1 (3 items)