I'm making changes to an intranet web app that uses only IE6 as the browser.
It makes use of CSS expressions for dynamic positioning and other tricks,
and it works quite well.
My question is: Why can't I get expressions to work as values in a clip
definition?
This works fine to hide the top half of the table:
<table border="1" style="position:absolute;clip:rect(50%,auto,auto,a uto);">
<tr><td>Test<br>Test<br>Test</td></tr>
</table>
But this, which should have the same effect, doesn't do anything:
<table border="1" id="table1"
style="position:absolute;clip:rect(expression(docu ment.getElementById('table
1').offsetHeight/2),auto,auto,auto);">
<tr><td>Test<br>Test<br>Test</td></tr>
</table>
Can someone give a working example of using an expression as a value in a
clip property?
--
Matt Kruse
http://www.JavascriptToolbox.com