Log in

View Full Version : Xml Help Please



razor1000
01-05-2007, 04:50 AM
this is based on the DOM XMLTicker
http://www.dynamicdrive.com/dynamicindex2/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.

BLiZZaRD
01-05-2007, 02:25 PM
Not a genius either, and I may be completely wrong here, but I remember using something similar to the following:



<message type="img" scr="http://yoursite.com/path/to/image.jpg" url="http://cnn.com>This is CNN.com</ message>