Hi, i have searched the forums for some help with this issue but did not appear to find anything – i apologise if there is already a thread for this!
I am trying to create some tool tips, basing the tool tip on data in an xml file. I am using javascript to obtain the data from the file.
i have an xml file:
[CODE]<Help updated=”Mon 12th March 2007″>
<HelpTopic name=”first”>
<ToolTip>first tool tip</ToolTip>
<HelpText>first help text</HelpText>
</HelpTopic>
</Help>
& the following Javascript:
[CODE]<script type=”text/javascript”>
var xmlDoc=new ActiveXObject(“Microsoft.XMLDOM”)
xmlDoc.async=”false”
xmlDoc.load(“help.xml”)
xmlObj=xmlDoc.documentElement.childNodes;
ToolTip.innerText = xmlObj.childNodes(0).item(0).text
</script>
I am trying to obtain “ToolTip” to use within a <span> I am doing this like:
<span title=”ToolTip”>Tool Tip Three</span>
Can some one please advise?
Cheers