You are here: Re: Simulating expression for Mozilla « HTML « IT news, forums, messages
Re: Simulating expression for Mozilla

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация