473,404 Members | 2,170 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,404 software developers and data experts.

SCROLLING

Hello,
I have a menu at the top of my HTML page. When I scroll down the page,
I would like it to stay at the top of the browser window, even though
I'm no longer at the top of the page. Is this possible with
JavaScript, adn if so, how do I write the code?
Sep 11 '08 #1
5 1100
bean wrote on 11 sep 2008 in comp.lang.javascript:
Hello,
I have a menu at the top of my HTML page. When I scroll down the page,
I would like it to stay at the top of the browser window, even though
I'm no longer at the top of the page. Is this possible with
JavaScript,
Yes
adn if so, how do I write the code?
By learning to write javascript.

[show us what you have done sofar]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 11 '08 #2
On Sep 12, 7:38*am, bean <bean3...@gmail.comwrote:
Hello,
I have a menu at the top of my HTML page. When I scroll down the page,
I would like it to stay at the top of the browser window, even though
I'm no longer at the top of the page. Is this possible with
JavaScript, adn if so, how do I write the code?
Search this group for "position fixed".

<URL:
http://groups.google.com.au/group/co...rch+this+group
>

--
Rob

Sep 11 '08 #3
bean wrote:
Hello,
I have a menu at the top of my HTML page. When I scroll down the page,
I would like it to stay at the top of the browser window, even though
I'm no longer at the top of the page. Is this possible with
JavaScript, adn if so, how do I write the code?
Hi bean,
your question is good, I have been contemplating the same, but have not
found a good way to solve it. Especially internet explorer 6 does not obey
the 'position fixed' -expression in my tests.

This group might have active writers, who know ECMASCRIPT-262 standards
etc so well that they obviously think that they do not be friendly any more.
And
they might be right. This group is for difficult expert questions only in
their
opinion, I am afraid.

But do not allow that to spoil your day :).

Sep 12 '08 #4
optimistx wrote:
bean wrote:
<snip>
... . Especially internet explorer 6 does not obey
the 'position fixed' -expression in my tests.
<snip>

It doesn't, but the strategies for that shortcoming of IE 6 have been
discussed and explored here many times by now. Those discussions could
be found by looking up "position fixed" in the archives.

Richard.

Sep 12 '08 #5
bean ha scritto:
Hello,
I have a menu at the top of my HTML page. When I scroll down the page,
I would like it to stay at the top of the browser window, even though
I'm no longer at the top of the page. Is this possible with
JavaScript, adn if so, how do I write the code?
try this: www.studiolegalemilla.it and have a look at the scripts.
I only have adapted some functions found elsewhere, plus I realize the
site is quite ugly and moreover I am in no way an expert, so maybe many
serious people in this NG would be horrifyed by this post. Sorry to them...
Dan
Sep 12 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Midas NDT Sales | last post by:
I have been looking at a simple example of a scrolling text box (the one in the SAM book) as below: <script language="JavaScript"> var pos=100; function Scroll() { if...
1
by: Kirk | last post by:
Is it possible to stop horizontal scrolling whilst still maintaining vertical scrolling within an <IFRAME> ? Within each page of my site I have an IFRAME for content. For some pages there is...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
1
by: Tim Frawley | last post by:
I have a large form with many controls, almost like legal size paper in height. Just so I can head these off, I am not looking for suggestions to the effect of using Tab controls, multi-window...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
4
by: Keith Bentrup | last post by:
Hi all, I wrote a simple search function to find text in a textarea where not all the text is visible (ie. the text box displays 10 lines but there may be more than 1000 lines to search). I can...
1
by: atif | last post by:
Hi, I m new to CSharp.. so may be my preliminary questions look stupid.. but plz help me.. I want to drag controls like buttons or some other user controls over form.. i have set form's...
5
by: PythonistL | last post by:
I am a newbie with Javascript. I have this simple script for scrolling text <HTML> <HEAD> <TITLE>Scrolling Message Script</TITLE> <SCRIPT language="JavaScript"><!-- var msg = 'My scrolling...
3
by: Chamnap | last post by:
Hello everybody, I have one problem. I want to do something after the user finished scrolling. The scroll event fires whenever the user is scrolling. I don't want this actually. Does anyone has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.