473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Div Follows page vertical scrollBar

25
After a very very long search in the internet and in this forum I
give up and asking you (the experts) a question.

I have a little from and I want it to "follow" the vertical scrollbar of the page.

I will ask a simple qustion ==>
How ?

I have no idea how to do this.

hope to get some answers and
thank you.
Jan 31 '07 #1
5 10411
b1randon
171 Expert 100+
After a very very long search in the internet and in this forum I
give up and asking you (the experts) a question.

I have a little from and I want it to "follow" the vertical scrollbar of the page.

I will ask a simple qustion ==>
How ?

I have no idea how to do this.

hope to get some answers and
thank you.
Here is a script that has that functionality: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm
Jan 31 '07 #2
obarash
25
Here is a script that has that functionality: http://www.dynamicdrive.com/dynamicindex17/floatbar.htm
thank you.

How did you find it?
Feb 1 '07 #3
obarash
25
The script in that website need a first X position and Yposition.

My problem is the X positoin,
because some of the people use 800X600 resolution and others use 1024X768.
Another problem is if the window is on fullscreen or not (because the site's align is to the center);

what can I do?
Feb 1 '07 #4
obarash
25
I solved the problem

I'm using a function to find the positoin of the form in page

Expand|Select|Wrap|Line Numbers
  1. function findPos(obj){
  2.     var curleft = curtop = 0;
  3.     if (obj.offsetParent){
  4.         curleft = obj.offsetLeft;
  5.         curtop = obj.offsetTop;
  6.         while (obj = obj.offsetParent){
  7.             curleft += obj.offsetLeft;
  8.             curtop += obj.offsetTop;
  9.         }
  10.     }
  11.     return [curleft,curtop];
  12. }
Feb 1 '07 #5
acoder
16,027 Expert Mod 8TB
Glad you got your problem solved.

You asked how he found it. Probably by Googling, just put in the correct keywords and you should usually find what you want unless it's a very complex problem that no-one's attempted before.
Feb 1 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: MarBo | last post by:
Hi My index page has got scrollbars turned on even when there is not enough there to scroll. How do I remove this? www.marbo.co.uk
4
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
0
by: Gene Hubert | last post by:
I've got two treeviews side by side on a panel on a form. They each have about 20 nodes in them. The treeview on the right has a vertical scrollbar. The treeview on the left needs a vertical...
4
by: ShaneO | last post by:
In a Windows Form I have a RichTextBox with Multiline = True and ScrollBars = Vertical. As expected, when Text is loaded into the RTB the Vertical ScrollBar will appear if needed. Does anyone...
0
by: jazeelkm | last post by:
hi, i am a beginer in the world of C# 1. I want to hide the vertical scrollbar of a listbox . In properties i can hide the horizontal scrollbar , but there s no option for vertical scroll...
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
27
by: Steve | last post by:
My apologies if this is a duplicate post, I can't find the earlier version of my question. I have a DIV that uses a CSS class defined at the thtop of an HTML page. The height and width of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.