cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: cvs commit: cocoon-2.1/src/blocks/woody/samples/resources woody-field-styling.xsl
Date Tue, 18 Nov 2003 21:22:20 GMT
Vadim Gritsenko wrote:

> Sylvain Wallez wrote:
>
>> Vadim Gritsenko wrote:
>
...

>>> You can try this for wi:help:
>>>
>>>    <xsl:if test="wi:help">
>>>      <span id="h{generate-id()}" 
>>> style="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;">

>>>
>>>        <div style="border-style: solid; border-width: 1px; margin: 
>>> 1px; padding: 5px;">
>>>          <xsl:apply-templates select="wi:help"/>
>>>        </div>
>>>      </span>
>>>      <script language="JavaScript">
>>>        var hWin<xsl:value-of select="generate-id()"/> = new 
>>> PopupWindow('h<xsl:value-of select="generate-id()"/>');
>>>        hWin<xsl:value-of select="generate-id()"/>.autoHide();
>>>      </script>
>>>      <a id="{generate-id()}" href="#" 
>>> onclick="hWin{generate-id()}.showPopup('{generate-id()}');return 
>>> false;"><img border="0" src="resources/help.png"/></a>
>>>    </xsl:if>
>>>
>>> It will generate nice popup using same Calendar.js script, and this 
>>> popup will support html tags, not like this alert() window
>>
>>
>>
>>
>> Looks super-cool. Wanna commit it?
>

Ok, I'm working on it... Found some issues with IE with the above 
code... Will try some workaround(s)...

Vadim



Mime
View raw message