Results 1 to 2 of 2

Thread: Ajax Ticker

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

    Default Ajax Ticker

    1) Script Title: Ajax Ticker

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ajaxticker.htm


    3) Describe problem:

    When I attempt to run this script on my web server; I get the message
    Initializing Ticker....
    And nothing else.
    Here is the code I am using in full:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    #ajaxticker1{
    width: 160px;
    height: 140px;
    padding: 3px;
    font-family : verdana, arial, sans-serif; font-size : 9px; line-height : 10px; color : #4A4A4A;}
    }
    #ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/

    }

    .someclass{ //class to apply to your scroller(s) if desired
    }
    -->
    </style>
    <script src="ajaxticker.js" type="text/javascript">
    /***********************************************
    * Ajax Ticker script (txt file source)- © Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    </script>

    </head>




    <body>
    <script type="text/javascript">

    var xmlfile="currentnews.txt" //path to ticker txt file on your server.

    //ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
    new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 5000, "fade")
    </script>
    </body>
    </html>

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

    Default

    Make sure currentnews.txt as specified inside your script exists and in the current directory the script is on. Also, locally you should use Firefox (not IE) to see if the script is working.

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
  •