Insert in the "buildHead" template of your theme's file something like:

<xsl:variable name="lib-path">
    <xsl:value-of
select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='contextPath'][not(@qualifier)]"/>
    <xsl:text>/themes/</xsl:text>
    <xsl:value-of
select="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='theme']...@qualifier='path']"/>
    <xsl:text>/lib/</xsl:text>
</xsl:variable>

<script type="text/javascript">
    <xsl:attribute name="src">
        <xsl:value-of select="$lib-path"/>
        <xsl:text>*xfade2.js*</xsl:text>
    </xsl:attribute>
</script>

supposing the javascript file is located at xmlui/themes/Tst_legis/lib.

Add also any needed CSS references.

Regards,
Fabio


On Mon, Aug 24, 2009 at 10:08, Fabricio Costa <brizzi...@yahoo.com.br>wrote:

> Hi,
>
> We want to insert an image crossfader javascript in our xmlui theme
> (homepage).
>
> Does anybody know how to do it?
>
> The javascript code:
> http://slayeroffice.com/code/imageCrossFade/xfade2.html
>
> Our theme code:
> http://aplicacao.tst.jus.br/dspace/themes/Tst_legis/Tst_legis.xsl
>
>
> All ideas are welcome.
> Fabricio
>
>
>
>  
> ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to