How to display items of datalist one at a time and automaticaly change after few sec?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anoop s
    New Member
    • Feb 2011
    • 16

    How to display items of datalist one at a time and automaticaly change after few sec?

    Hi

    I have to display customer's details in my home page. Now I am using datalist and marquee for it. But client's requirement is display one customer's details some seconds then next (dont want moving). Thanks in advance.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    It sounds like you are interested in using JavaScript to make a request to the server for the next customer-record.

    You could either use the setTimeout() method or the setInterval() method. The setTimeout method will wait a specified number of milliseconds before executing the method provided as a parameter to it. The setInterval method will execute JavaScript regularly until the clearInterval method is called.

    -Frinny

    Comment

    Working...