| View previous topic :: View next topic |
| Author |
Message |
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| Hi all. does prototype or scriptaculous offer a way to create a "smart" floating div that follows the screen when scrolling? |
| |
|
|
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| tht's called "fixed positioning" |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| tks =) how can i achieve it? |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
| Position: fixed; in the good browsers |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| In everything but IE, position: fixed; |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
| In IE you can use position: absolute; and an expression for top: and left: |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| Hmm.. interesting. i'll look into that. tks a lot |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
Position: absolute; top: expression(document.body.scrollHeight+'px'); left: expression(document.body.scrollLeft+'px');
For example |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
And is it any harm if i use both at the same time ? (to ensure all browsers will see the effect)
Or should i stick to the expression? |
| |
|
|
Jackil
Joined: 24 May 2006 Posts: 97
|
Only IE supports expression()
It's their own private addition |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|