redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Thursday 18 October 2018 19:48

Ask your IT question here

how to create a SMART floating div


Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> JavaScript forum
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
tht's called "fixed positioning"
Reply with quote
 
PaulKolin
Enthusiastic Coder


Joined: 25 May 2006
Posts: 108
tks =) how can i achieve it?
Reply with quote
 
Jackil
Enthusiastic Coder


Joined: 24 May 2006
Posts: 97
Position: fixed; in the good browsers
Reply with quote
 
ovigo22
Enthusiastic Coder


Joined: 15 May 2006
Posts: 130
In everything but IE, position: fixed;
Reply with quote
 
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
Hmm.. interesting. i'll look into that. tks a lot
Reply with quote
 
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
Only IE supports expression()
It's their own private addition

Reply with quote
 
Page 1 of 2 Goto page 1, 2  Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

© 2018 RedHo