[xsl] change td background with XSL and Javascript

Subject: [xsl] change td background with XSL and Javascript
From: henry human <henry_human@xxxxxxxx>
Date: Tue, 19 Aug 2008 19:15:26 +0200 (CEST)
Hi
I am calling this JavaSecript in a if-statement to
change the background of a td-element. Unfortunately
the bacground is still empty. I am not very sure if
this will work, because to update of the td-background
maybe should an event f.i. an mouse over happen?!?
PS:
The if statement get a correct path back to the
JScript:



<table><tr>
<td name="flashhalter" background="">
<xsl:if test="/Page/bgImg/node()">
<xsl:variable name="imgVar" select="/Page/bgImg"/>

changeImage(<xsl:value-of select="/Page/bgImg" />);
			</xsl:if>
*********************
 <script language="JavaScript">
 function changeImage(newImage)
 {
    if (document.flashhalter)
	      {
   document.flashhalter.background =
'/irj/go/km/docs/' + newImage;
  }
}
 </script>


Thnaks for any hint

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verf|gt |ber einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 

Current Thread