Results 1 to 6 of 6

Thread: Ajax News ticker help

  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Ajax News ticker help

    Ajax news ticker

    http://www.dynamicdrive.com/dynamici...ajaxticker.htm

    After I followed the steps in teh script. The news ticker worked but with a problem.
    I have 4 messages to display in the ticker.
    The first instance it displays all
    The second displays from 2 to 4
    The third displays 3-4
    The fourth displays only the fourth one.

    I need the script to display each message at a time.

    What did I do wrong and what should I do?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Check the external .txt file containing your messages to make sure each one is properly divided by a DIV tag with CSS class="message", for example:

    Code:
    <div class="message">
    <a href="http://www.javascriptkit.com" target="_new">JavaScript Kit</a><br />Comprehensive JavaScript tutorials and over 400+ free scripts!
    </div>
    
    <div class="message">
    <a href="http://www.codingforums.com">Coding Forums</a><br />Web coding and development forums.
    </div>
    
    <div class="message">
    <a href="http://www.cssdrive.com">CSS Drive</a><br />Categorized CSS gallery and examples.
    </div>
    
    <div class="message">
    <a href="http://www.javascriptkit.com/domref/">DOM Reference</a><br />This is a no-nonsense, easy to follow DOM reference for JavaScript.
    </div>

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    nadweb (04-26-2008)

  4. #3
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default txt file

    this is what i have in the text file

    <!--Wrap each ticker cotent inside <div class="message"> tag -->

    <div class="message"><b>March 14, 2008</b><br>22406 Trucker Speeding<br>Orange Central Court<br><b>Case Dismissed</b><br></div>

    <div class="message"><b>March 13, 2008</b><br>22350 Street Speeding<br>Orange Central Court<br><b>Case Dismissed</b><br></div>

    <div class="message"><b>March 3, 2008</b><br>22348 110 mph Speeding<br>Yuba City Court<br><b>Case Dismissed</b><br></div>

    <div class="message"><b>February 29, 2008</b><br>22348 110 mph speeding<br><b>Case Dismissed with trial by declaration</b><br></div>

  5. #4
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Edit: Wrong request.
    Last edited by ddadmin; 04-27-2008 at 07:33 AM.

  6. #5
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ajax news ticker

    http://www.dynamicdrive.com/dynamici...ajaxticker.htm

    Sorry, I didn't know i have to post the name of the script and the link everytime i reply. So here they are above. I got a warning message after my previous reply to you.

    here is the problem again I followed teh steps in usning the script on my page but I got the messages displayed all together at once like:

    The first instance it displays all
    The second displays from 2 to 4
    The third displays 3-4
    The fourth displays only the fourth one.

    I need the script to display each message at a time.

    this is what i have in the text file

    Code:
    <!--Wrap each ticker cotent inside <div class="message"> tag -->
    
    <div class="message"><b>March 14, 2008</b><br>22406 Trucker Speeding<br>Orange Central Court<br><b>Case Dismissed</b><br></div>
    
    <div class="message"><b>March 13, 2008</b><br>22350 Street Speeding<br>Orange Central Court<br><b>Case Dismissed</b><br></div>
    
    <div class="message"><b>March 3, 2008</b><br>22348 110 mph Speeding<br>Yuba City Court<br><b>Case Dismissed</b><br></div>
    
    <div class="message"><b>February 29, 2008</b><br>22348 110 mph speeding<br><b>Case Dismissed with trial by declaration</b><br></div>

  7. #6
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Ops, my bad, I meant please post a link to the problem page on your site. The info you posted so far isn't enough for me to determine what the issue is.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •