Thanks ! that did solve it.
i was just using that to learn the principle
my problem now is that i want to do another onmouseover function this time making an image change when some text has the mouse over it...
my code is:
if (document.images) {
img_on =new Image(); img_on.src = "images/menu-option.gif";
img_off=new Image(); img_off.src = "images/menu-option-off.gif";
}
function func() {
if (document.images) document.imgName.src=img_on.src;
}
function func1() {
if (document.images) document.imgName.src=img_off.src;
}
<h2><img name=imgName src="images/menu-option-off.gif" alt="Menu Option" />
<a onmouseover="func();" onmouseout="func1();" >
<xsl:attribute name="href"> <xsl:text>....</xsl:text>
</xsl:attribute>
<xsl:value-of select="title"/>
</a>
</h2>
the problem is that when i put the code as it is the xsl doesnt manage to build the html.
when i surround the img name with quotes (name="imgName") but the mouseover doesnt work.
am i making things too complicated?
-----------------------------
QUOTE(Arbitrator @ 23 Aug, 2006 - 09:23 PM)

Why is the code for your alert() function surrounded by double quotes? You may as well remove the java script: URL scheme since the contents of an onmouseover event are by nature JavaScript, making it redundant. In other words, try this:
java script:
function func() {
alert("Back to homepage");
}
HTML:
<a onmouseover="func();"></a>
Note that "java script:" and "JavaScript" should not have any spaces and the latter should have a capital "J" and "S". This forum is doing something messed up to them.