Results 1 to 5 of 5

Thread: Ajax XML Ticker

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

    Default Ajax XML Ticker

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

    What am I doing wrong? I followed the steps, but I'm still unable to see the scroller.

    I inserted this code into the head section:

    <style type="text/css">

    /*Example CSS for demo ticker*/

    #ajaxticker1{
    width: 200px;
    height: 100px;
    border: 1px ridge black;
    padding: 5px;
    background-color: #FEEEB8;
    }

    #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*/
    background-color: #FEEEB8;
    }

    .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>
    and inserted this into the body section:

    <script type="text/javascript">

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

    //ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
    new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")
    </script>
    Then I saved the ajaxticker.js file and the tickercontent.txt file. I didn't change a thing because I just wanted to view it on my site. But all I see is a blank page. Can someone tell me what I'm missing?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    PLEASE: Include the URL to your problematic webpage that you want help with.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

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

    Default

    From what I can tell the problem is simply that the line to invoke the scroller in the BODY is actually commented out:

    Code:
    <script type="text/javascript"> var xmlfile="tickercontent.txt" //path to ticker txt file on your server. //ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot) new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade") </script>
    Change that to:

    Code:
    <script type="text/javascript">
    var xmlfile="tickercontent.txt" //path to ticker txt file
    new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")
    </script>

  5. #5
    Join Date
    Apr 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for you help, seems to be working now.

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
  •