aspose file tools*
The moose likes XML and Related Technologies and the fly likes xsl: Show hidden layers with onmouseover Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl: Show hidden layers with onmouseover" Watch "xsl: Show hidden layers with onmouseover" New topic
Author

xsl: Show hidden layers with onmouseover

Tom tdb
Greenhorn

Joined: Sep 25, 2003
Posts: 1
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;
</xsl:element&rt;
</div&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;
</a&rt;
</td&rt;
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: xsl: Show hidden layers with onmouseover