• Post Reply Bookmark Topic Watch Topic
  • New Topic

xsl: Show hidden layers with onmouseover  RSS feed

Tom tdb
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all
i'm building a site with xsl and want to use layers to show a different picture (in the same frame) when i move over my dynamic (xml-files with xsl) navigation. So I want to show the hidden layer... i have to show 10 different images on te same place when i move over my navigation. I use @TYPE (exemple BIN) for my ID.
I've tried on many different ways and it will not work. Can somebody help me? Thanks

--&rt;&rt;&rt; LAYER
<div id="productv" style="position:absolute; left:10px; top:240px; z-index:1; visibility: hidden;"&rt;
<xsl:element name="image"&rt;
<xsl:attribute name="src"&rt; IMAGES/cirkel_logo_BIN.jpg</xsl:attribute&rt;
<xsl:attribute name="width"&rt;132</xsl:attribute&rt;
<xsl:attribute name="height"&rt;126</xsl:attribute&rt;
<xsl:attribute name="border"&rt;0</xsl:attribute&rt;
--&rt;&rt;&rt; LAYER
<td width="132" height="23" align="left" bordercolor="#FFFFFF"&rt;
<a&rt;<xsl:attribute name="width"&rt;125</xsl:attribute&rt;
<xsl:attribute name="href"&rt;#</xsl:attribute&rt;
<xsl:attribute name="onMouseover"&rt;showHideLayers('productv')</xsl:attribute&rt;
<xsl:value-of select="@NAME"/&rt;
Lasse Koskela
Posts: 11962
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom and welcome to the JavaRanch!
A couple of things:
First, your name doesn't comply with our naming policy so I'll have to ask you to change it.
Second, I'm not sure whether your problem is about JavaScript or XSL. I'd suggest you figure out separately what kind of JavaScript you want your HTML to contain and when that works in a static page, only then write the XSL for transforming dynamic input into that kind of HTML/JavaScript.
Third, use the UBB CODE tags for code snippets. It really looks nicer and your question gets answered faster when it's easy to read.
Ok. I'm now going to close this thread. Please, post the questions related to the JavaScript not working to the HTML/JavaScript forum and questions related to transforming XML into that HTML/JavaScript in this forum.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!