2008-10-11 4 views
0

도움이 필요합니다.XSLT의 Webtextedit Mousemove 이벤트

xml에 단서가 없습니다. & WebtextEdit, ASP 컨트롤을 만드는 xslt 스타일 시트를 편집 중입니다.

아래는 WebTextEdit 컨트롤입니다, 나는 MouseMove 이벤트 이벤트를 추가 할 : 그것은 다른 개체에 작품으로

<xsl:element name="igtxt:WebTextEdit"> 
     <xsl:attribute name='id'><xsl:value-of select='$Name' /></xsl:attribute> 
     <xsl:attribute name='runat'>server</xsl:attribute> 
<xsl:attribute name='Text'><xsl:value-of select='$Value' disable-output-escaping="yes" /></xsl:attribute>              <xsl:attribute name='MouseMove'>"<xsl:value-of select='@name' />".style.color = '#006AB6';</xsl:attribute> 
<xsl:for-each select="$Attributes/Attribute"> 
      <xsl:if test=". != ''"> 
      <xsl:attribute name='{@name}'><xsl:value-of select='.' /></xsl:attribute> 
      </xsl:if> 
     </xsl:for-each> 
     <xsl:copy-of select="$Events" /> 
     </xsl:element> 

코드는 스타일을 변경하기 위해 노력하고 있습니다.

난 당신이 항상 같은 정적 자바 스크립트 또는 XSLT 생성 동적 자바 스크립트를 실행하려면, WebTextEdit 제어

답변

1

에 마우스 오버 이벤트를 추가를 추가하는 데 사용되는 것과 같은 방법을 사용할 수있는 방법을 지원하십시오 ID는, RUNAT, 및 텍스트 속성 : 각 컨트롤 그냥이 템플릿을 트리거하는 XML 요소에 onMouseover와 속성을 추가, 다른 (정적) 자바 스크립트를 실행해야

<xsl:attribute name="mouseover">alert('test');</xsl:attribute> 

합니다. 루프는 XML 요소의 속성을 읽고 생성 된 마크 업으로 전달합니다.