Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Call javascript function to specify "bottom:" in style Call javascript function to specify "bottom:" in styleTo: NULL Date: 10/11/2005 3:00:00 AM Hi all,
I have a little problem with my code. I want to do something like this in my
xslt code:
<div class="CASMenuLevel1" style="position:absolute;
bottom:setBottomStyle(this,$NUM_ITEMS); .... ">
Here, $NUM_ITEMS is a variable in my XSL template, and setBottomStyle(..) is
a javascript function to set the value of "bottom:" dinamically, as follows:
function setBottomStyle(obj,numItems)
{
if (numItems > 3) this.style.bottom = '0px';
}
Is it possible to do this?
Thanks and cheers.
David
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
