I try to use onMouseOver to write an xml document /w xsl document to a page. Maybe the code will help explain.
In the head section:
[CODE]<script type=”text/javascript”>
//
// Load XML
//
var xml = new ActiveXObject(“Microsoft.XMLDOM”)
xml.async = false
xml.load(“cars.xml”)
var x = false
var write = “”
function xslload()
{
//
// Load XSL
//
var xsl = new ActiveXObject(“Microsoft.XMLDOM”)
xsl.async = false
xsl.load(“cars.xsl”)
//
// Transform
//
var write = xml.transformNode(xsl)
var x = true
}
function xslload2()
{
//
// Load XSL
//
var xsl2 = new ActiveXObject(“Microsoft.XMLDOM”)
xsl2.async = false
xsl2.load(“cars2.xsl”)
//
// Transform
//
var write = xml.transformNode(xsl2)
var x = true
}
function xslload3()
{
//
// Load XSL
//
var xsl3 = new ActiveXObject(“Microsoft.XMLDOM”)
xsl3.async = false
xsl3.load(“cars3.xsl”)
//
// Transform
//
var write = xml.transformNode(xsl3)
var x = true
}
</script>
In the body section:
[CODE]<p>
This is table <a href=”” onMouseOver=”xslload()”>1</a>.
<br />
This is table <a href=”” onMouseOver=”xslload2()”>2</a>.
<br />
This is table <a href=”” onMouseOver=”xslload3()”>3</a>.
</p>
<p>
<script type=”text/javascript”>
while(x = true)
{
document.write(write)
}
</script>
</p>
Does anyone know why when I hover over the links the tables won’t appear?