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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--