Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons should move along

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have created some buttons to go to another part of my website. When I scroll down, these buttons just scroll along and now I want to have that those buttons remain in sight. So, I would like to have a javascript who makes sure that those buttons stay fixed at the top of the screen
 
It is because the buttons that you have are located in the same layer as the rest of the page. If I understand your question correctly, I think that all you would need to do is put the buttons in another layer.

Hope this helps.


-Vic vic cherubini
malice365@hotmail.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
in IE this works:

<script>
function keepTop()
{
window.layerid.style.top=window.document.body.scrollTop
}

window.onscroll=keepTop

p.s.:

recently (after you posted this, but this is just to remind others) this forum topic was changed to include only HTML and CSS. From now on, please post programming questions in the forum corresponding to your desired solution language (i.e. if you want to use javascript for your solution, go to the javascript forum, for vbscript go there)

thanks jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top