View previous topic :: View next topic |
Author |
Message |
PaulKolin Enthusiastic Coder
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?
Reply with quote
|
|
|
|
ovigo22 Enthusiastic Coder
Joined: 15 May 2006 Posts: 130
| |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
Jackil Enthusiastic Coder
Joined: 24 May 2006 Posts: 97
| |
ovigo22 Enthusiastic Coder
Joined: 15 May 2006 Posts: 130
| |
Jackil Enthusiastic Coder
Joined: 24 May 2006 Posts: 97
|
In IE you can use position: absolute; and an expression for top: and left:
Reply with quote
|
|
|
|
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
Jackil Enthusiastic Coder
Joined: 24 May 2006 Posts: 97
|
Position: absolute; top: expression(document.body.scrollHeight+'px'); left: expression(document.body.scrollLeft+'px');
For example
Reply with quote
|
|
|
|
PaulKolin Enthusiastic Coder
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?
Reply with quote
|
|
|
|
Jackil Enthusiastic Coder
Joined: 24 May 2006 Posts: 97
| |
Page 1 of 2 |
Goto page 1, 2 Next |
|