/    Sign up×
Community /Pin to ProfileBookmark

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>[/CODE]

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>[/CODE]

Does anyone know why when I hover over the links the tables won’t appear?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @conputerguy99 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...