nkeric schrieb:
> On 11/8/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>> Step one: For the panel simply use fixed positioning:
>> This one for IE6:
>>
>> * html #panel {
>>       position: absolute;
>>       top: expression(ignoreMe = document.documentElement &&
>> document.documentElement.scrollTop || document.body.scrollTop);
>> }
> 
> hi Klaus, BiG thanks to your quick reply!
> This is what I want! I need this trick to make IE aware of 'fixed' 
> positioning!
> 
> However, is there a more compatible (?) way for doing this kind of
> 'floating' magic? Is it possible to use jquery to make the panel
> floating up/down smoothly while user scrolling the long page? (here is
> another concern, I'm wondering that user might get annoying seeing
> this panel keep floating around...)


You would have to setup an interval that checks for instance every 100ms 
  the position of the scrollbar and then readjust the panel accordingly. 
I don't like that because the dynamic property does this job quite well 
already...

If you feel uncomfortable about that snippet in your style sheet you can 
set that expression in your script as well:

if ($.browser.msie)
     $('#panel').get(0).style.setExpression('top', 
'document.documentElement &&
document.documentElement.scrollTop || document.body.scrollTop');

Note that I left out the unit "px" here, I found that if you use 
setExpression, the unit breaks the expression and is implicit instead.

HTH

-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to