Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2009, 02:50 PM
Authorized User
 
Join Date: Feb 2009
Posts: 43
Thanks: 10
Thanked 0 Times in 0 Posts
Default Mouseover in xslt

I trying attempting to add the mouseover to my xslt .. thus...

Code:
<td><a href="#">
               <img border="0">
                 <xsl:attribute name="onmouseover">
                   <xsl:value-of select="/Properties/Data/Datum[@ID='SalesImageSourceOver']"/>
                 </xsl:attribute>
                 <xsl:attribute name="onmouseout">
                   <xsl:value-of select="/Properties/Data/Datum[@ID='SalesImageSource']"/>
                 </xsl:attribute>
                 <xsl:attribute name="src">
                   <xsl:value-of select="/Properties/Data/Datum[@ID='SalesImageSource']"/>
                 </xsl:attribute>
               </img></a> 
             </td>
I must be missing something,because, when I hover over the default image nothing happens.
 
Old February 26th, 2009, 03:49 PM
Authorized User
 
Join Date: Feb 2009
Posts: 43
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Please ignore I have found s solution for this...

Code:
<img border="0"> 
                   <xsl:attribute name="onmouseover">this.src='<xsl:value-of select="/Properties/Data/Datum[@ID='SalesImageSourceOver']"/>';</xsl:attribute>
                   <xsl:attribute name="onmouseout">this.src='<xsl:value-of select="/Properties/Data/Datum[@ID='SalesImageSource']"/>';</xsl:attribute>
                   <xsl:attribute name="src"><xsl:value-of select="/Properties/Data/Datum[@ID='SalesImageSource']"/></xsl:attribute>
                 </img>
 
Old March 16th, 2009, 04:11 AM
Registered User
 
Join Date: Mar 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hI

I have a simlar issue where i need to dispaly the images dynamically via XSLT.
I am displaying my pdf documents the my search items in search core result web part and I need to dispaly first page of the image (which i have stored in my sharepoint picture library) ON mouseover
I just need to know how you are displaying them dynamically.The complete code sample of yours will do a lot of good.

Thanks in advance
J
 
Old March 16th, 2009, 05:48 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Thumbs up

As Joe Fawcett has replied in your other post, please post the input xml, your xslt code (part of which creates problem) and the output required. Only then you can get a solution.

In the above post also the XSLT code has been posted.
__________________
Rummy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp with JavaScript - Mouseover snufse ASP.NET 2.0 Basics 7 January 26th, 2009 08:31 PM
Q: JButton with Mouseover and sound kifissia Java Basics 1 March 16th, 2007 06:38 AM
mouseover on label msrnivas ASP.NET 1.0 and 1.1 Basics 5 February 8th, 2007 10:27 AM
HTML Table and Mouseover itHighway Javascript How-To 4 January 30th, 2006 02:05 PM
oPacity Mouseover crmpicco Javascript How-To 3 July 1st, 2005 09:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.