Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

expressions and recalc()

0 views
Skip to first unread message

Matt

unread,
Sep 19, 2001, 2:17:57 PM9/19/01
to
I am setting the width of a class in my styleSheet as
follows:

.Icon {
position:absolute;
top:21;
left:0;
width:expression(document.body.clientWidth);
height:30;
background-color: #dddddd;
border: thin none Silver;
}

on the initialization of the page it works perfect. What
I would like to see is the DIV using the Icon class expand
or contract when the window is resized. I have tried
explicitly callin the recalc() method of the document
object and that doesn't seem to help.

Any suggestions would be gratly apprciated.

Thanks

Matt


Matt

unread,
Sep 19, 2001, 2:17:52 PM9/19/01
to

Ekevu Cheetah

unread,
Sep 19, 2001, 4:26:18 PM9/19/01
to
Mwa, Matt!

> I am setting the width of a class in my styleSheet as follows:
> width:expression(document.body.clientWidth);

> Any suggestions would be gratly apprciated.

I, um, don't have a solution for your problem but a question... I've never
seen this expression keyword thing; who created it (M$/W3C/NN/etc) and how
does the CSS parser knows its language?

· · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· ·
· PEACE ·
· ·
· Ekevu Cheetah · http://www.felin.com.br · uin: 32125925 ·


Manish

unread,
Sep 19, 2001, 5:36:41 PM9/19/01
to

"Ekevu Cheetah" <msn...@felin.com.br> wrote in message
news:evuEPiUQBHA.1788@tkmsftngp03...

> Mwa, Matt!
> > I am setting the width of a class in my styleSheet as follows:
> > width:expression(document.body.clientWidth);
> > Any suggestions would be gratly apprciated.
>
> I, um, don't have a solution for your problem but a question... I've never
> seen this expression keyword thing; who created it (M$/W3C/NN/etc) and how
> does the CSS parser knows its language?

Have a look at -
http://www.siteexperts.com/ie5/htc/ts04/page1.asp (besides MSDN DHTML)

"expression" along with "behavior" can do (almost) anything that JScript can
do.
No! It's not W3C standard CSS (yet), as you would have guessed, it's by M$,
who el$e?
;))

- Manish


Ekevu Cheetah

unread,
Sep 20, 2001, 12:36:23 PM9/20/01
to
Mwa, Manish!

| > I, um, don't have a solution for your problem but a question... I've
never
| > seen this expression keyword thing; who created it (M$/W3C/NN/etc) and
how
| > does the CSS parser knows its language?
| Have a look at -
| http://www.siteexperts.com/ie5/htc/ts04/page1.asp (besides MSDN DHTML)
Thanks!

| "expression" along with "behavior" can do (almost) anything that JScript
can
| do.
| No! It's not W3C standard CSS (yet), as you would have guessed, it's by
M$,
| who el$e?
| ;))

Hehehehehe... It couldn't be from NN if it works in IE because the IE guys
even document that <blink> thing but leave it unimplemented. Not that I have
ever missed this, but an easy feature like this doesn't hurt and the
sensasionalist webmasters will love it! ;)

Jose Formiga

unread,
Sep 22, 2001, 11:12:46 AM9/22/01
to
Don't use 'expressions' .
"expressions " are very expensive and tuns the page rendering very slow.
Instead use:
  window.onresize=resizemydivs;
 
function resizemaydivs()
{
for (var i=0; i<document.all.length;i++)
   if(document.all(i).className=='Icon') document.all(i).style.width=document.body.clientWidth
}
0 new messages