Mouse events, xml values and Javascript

admin

Administrator
Staff member
I am wanting to replace the two values 560, 420 with two xml variables in the following code
<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" onmouseover="zoom(560,420,'logo','in')" onmouseout="clearzoom()">Zoom Out</a>

I have tried the following without success:

<a href=http://www.webdeveloper.com/forum/archive/index.php/"#" onmouseover="zoom("<xsl:value-of select='imagesize/@width'/>","<xsl:value-of select='imagesize/@height'/>",'logo','in')" onmouseout="clearzoom()">Zoom In</a>

Zoom is a Javascript function in the xsl code - function zoom(originalW, originalH, what, state)

How do I substitute the two numbers for the xml variables
<xsl:value-of select='imagesize/@width'/> and
<xsl:value-of select='imagesize/@height'/>

Thanks Freddo
 
Back
Top