Posted by jojo on 07/07/06 16:13
Toby Inkster schrieb:
> sunilp wrote:
>
>> This is working in IE.
>> In Mozilla firefox, CSS expression are not supported so this is not
>> working.
>
> You've got more of a problem than that. CSS "expressions" are a Microsoft
> invention. They're not supported by *any* other browsers.
>
>> How do i simulate this behaviour for Mozilla firefox?
>
> Use Javascript.
>
> document.body.onresize = function() {
> rttopdiv = someCodeToSelectThisElement();
> rttopdiv.left = document.body.scrollLeft + document.body.clientWidth - 35;
> rttopdiv.top = document.body.scrollTop;
> }
>
I think it has to be
document.body.onresize = function() {
rttopdiv = someCodeToSelectThisElement();
rttopdiv.*style.*left = document.body.scrollLeft +
document.body.clientWidth - 35;
rttopdiv..*style.*top = document.body.scrollTop;
}
But don't do it with JS if it can be done with CSS.
Navigation:
[Reply to this message]
|