JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I fix the menu in place while the webpage scrolls.

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
paulibus



Joined: 12 Feb 2006
Posts: 1
Location: Albuquerque, New Mexico

PostPosted: Sun Feb 12, 2006 8:47 pm    Post subject: How do I fix the menu in place while the webpage scrolls. Reply with quote

I am now using JSMenu Pro in place of a java script that a friend of mine wrote for me a while back. It turns out that his java script was designed to work in Firefox, but will not work in IE, which is why I made the change to JSMenu Pro. But, the one thing that this old script would do that I cannot make JSMenu Pro do is remain fixed in position while the webpage scrolls. I have tried using a fixed postion in the menu_items file, such as
var POS1 = [0, 120];, as well as "fixed" and "absolute". Nothing I try will keep the menu fixed on the page.

Does anyone have any suggestions?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Sat Apr 29, 2006 1:26 am    Post subject: Reply with quote

What about this piece of code:

Code:
<body onscroll="m1.moveXY(10, document.body.scrollTop + 10);">
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1