Results 1 to 2 of 2

Thread: Xml Help Please

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Xml Help Please

    this is based on the DOM XMLTicker
    http://www.dynamicdrive.com/dynamici...xmlticker2.htm

    the xml is as follows

    <?xml version="1.0"?>
    <xmlticker>
    <pause>3000</pause>
    <message>This is message #1</message>
    <message url="http://www.cnn.com">This is a link to CNN.com</message>
    <message>This is message #3</message>
    </xmlticker>

    now my problem is i want to be able to put images in this file but the two ways i've tried have not worked only returned a null when the javascript runs it so i'm guessing that it is the script that is limiting me. Since i'm not that advanced yet with javascript i was wondering if any of you geniouses could help me out, and take a loot at the code or the xml and tell me how to put the right stuff in there.
    Last edited by razor1000; 01-05-2007 at 04:58 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Not a genius either, and I may be completely wrong here, but I remember using something similar to the following:

    Code:
    <message type="img" scr="http://yoursite.com/path/to/image.jpg" url="http://cnn.com>This is CNN.com</ message>
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •